	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_set_master_slave_mode
_igb_set_master_slave_mode:             ## @igb_set_master_slave_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_PHY_1000T_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	*16(%rdi)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movl	-20(%rbp), %edx
	movq	_CR_1000T_MS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%edx, %esi
	movq	_CR_1000T_MS_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	%edx, %edi
	cmpl	$1, %edi
	movl	$129, %edi
	sbbl	$0, %edi
	testl	%esi, %esi
	movl	$130, %esi
	cmovnel	%edi, %esi
	movl	%esi, (%rbx)
	movl	4(%rbx), %esi
	cmpl	$128, %esi
	je	LBB0_5
## %bb.2:
	cmpl	$130, %esi
	je	LBB0_6
## %bb.3:
	cmpl	$129, %esi
	jne	LBB0_9
## %bb.4:
	orl	(%rax), %edx
	orl	(%rcx), %edx
	jmp	LBB0_8
LBB0_5:
	orl	(%rax), %edx
	movl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	notl	%eax
	andl	%eax, %edx
LBB0_8:
	movl	%edx, -20(%rbp)
LBB0_9:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_1000T_CTRL,4,2             ## @PHY_1000T_CTRL
	.comm	_CR_1000T_MS_ENABLE,4,2         ## @CR_1000T_MS_ENABLE
	.comm	_CR_1000T_MS_VALUE,4,2          ## @CR_1000T_MS_VALUE
	.no_dead_strip	_igb_set_master_slave_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_set_master_slave_mode
_igb_set_master_slave_mode:             ; @igb_set_master_slave_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x20, _PHY_1000T_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PHY_1000T_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	blr	x8
	cbnz	x0, LBB0_9
; %bb.1:
	ldr	w2, [sp, #12]
Lloh2:
	adrp	x8, _CR_1000T_MS_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CR_1000T_MS_ENABLE@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh4:
	adrp	x9, _CR_1000T_MS_VALUE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CR_1000T_MS_VALUE@GOTPAGEOFF]
	ldr	w11, [x9]
	tst	w11, w2
	mov	w11, #128
	cinc	w11, w11, ne
	tst	w10, w2
	mov	w10, #130
	csel	w10, w10, w11, eq
	str	w10, [x19]
	ldr	w10, [x19, #4]
	cmp	w10, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w10, #129
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x8]
	ldr	w9, [x9]
	orr	w8, w8, w2
	orr	w2, w8, w9
	b	LBB0_7
LBB0_5:
	ldr	w8, [x8]
	orr	w8, w8, w2
	ldr	w9, [x9]
	bic	w2, w8, w9
	b	LBB0_7
LBB0_6:
	ldr	w8, [x8]
	bic	w2, w2, w8
LBB0_7:
	str	w2, [sp, #12]
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_1000T_CTRL,4,2             ; @PHY_1000T_CTRL
	.comm	_CR_1000T_MS_ENABLE,4,2         ; @CR_1000T_MS_ENABLE
	.comm	_CR_1000T_MS_VALUE,4,2          ; @CR_1000T_MS_VALUE
	.no_dead_strip	_igb_set_master_slave_mode
.subsections_via_symbols
