	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_phv_bit                    ## -- Begin function set_phv_bit
	.p2align	4, 0x90
_set_phv_bit:                           ## @set_phv_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_mlx4_is_slave
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movl	(%rbx), %eax
	movq	_MLX4_DEV_CAP_FLAG2_PHV_EN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:
	movq	_MLX4_DEV_CAP_FLAG2_SKIP_OUTER_VLAN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_mlx4_SET_PORT_phv_bit
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	8(%rbx), %rax
	movl	%r14d, (%rax,%r15,4)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_MLX4_DEV_CAP_FLAG2_PHV_EN,4,2  ## @MLX4_DEV_CAP_FLAG2_PHV_EN
	.comm	_MLX4_DEV_CAP_FLAG2_SKIP_OUTER_VLAN,4,2 ## @MLX4_DEV_CAP_FLAG2_SKIP_OUTER_VLAN
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_phv_bit                    ; -- Begin function set_phv_bit
	.p2align	2
_set_phv_bit:                           ; @set_phv_bit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_mlx4_is_slave
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_PHV_EN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_PHV_EN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_SKIP_OUTER_VLAN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_SKIP_OUTER_VLAN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_mlx4_SET_PORT_phv_bit
	cbnz	w0, LBB0_6
; %bb.8:
	ldr	x8, [x21, #8]
	str	w19, [x8, x20, lsl #2]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_MLX4_DEV_CAP_FLAG2_PHV_EN,4,2  ; @MLX4_DEV_CAP_FLAG2_PHV_EN
	.comm	_MLX4_DEV_CAP_FLAG2_SKIP_OUTER_VLAN,4,2 ; @MLX4_DEV_CAP_FLAG2_SKIP_OUTER_VLAN
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
.subsections_via_symbols
