	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_write_8bit_ctrl_reg        ## -- Begin function igb_write_8bit_ctrl_reg
	.p2align	4, 0x90
_igb_write_8bit_ctrl_reg:               ## @igb_write_8bit_ctrl_reg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rax
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	_E1000_GEN_CTL_ADDRESS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %r12
	orq	%rax, %r12
	movq	%rsi, %rdi
	movq	%r12, %rsi
	callq	_wr32
	movq	_E1000_GEN_POLL_TIMEOUT@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jle	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	movq	_E1000_GEN_CTL_READY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$5, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	_rd32
	movq	%rax, %r12
	movq	(%r13), %rcx
	testq	%rax, %rcx
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movq	_E1000_GEN_CTL_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_5:
	xorl	%eax, %eax
	testq	%r12, %rcx
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_hw_dbg
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_GEN_CTL_ADDRESS_SHIFT,8,3 ## @E1000_GEN_CTL_ADDRESS_SHIFT
	.comm	_E1000_GEN_POLL_TIMEOUT,8,3     ## @E1000_GEN_POLL_TIMEOUT
	.comm	_E1000_GEN_CTL_READY,8,3        ## @E1000_GEN_CTL_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reg %08x did not indicate ready\n"

	.comm	_E1000_ERR_PHY,4,2              ## @E1000_ERR_PHY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_write_8bit_ctrl_reg        ; -- Begin function igb_write_8bit_ctrl_reg
	.p2align	2
_igb_write_8bit_ctrl_reg:               ; @igb_write_8bit_ctrl_reg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x8, _E1000_GEN_CTL_ADDRESS_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_GEN_CTL_ADDRESS_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	x8, x2, x8
	orr	x20, x8, x3
	mov	x0, x1
	mov	x1, x20
	bl	_wr32
Lloh3:
	adrp	x21, _E1000_GEN_POLL_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _E1000_GEN_POLL_TIMEOUT@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
Lloh5:
	adrp	x23, _E1000_GEN_CTL_READY@GOTPAGE
Lloh6:
	ldr	x23, [x23, _E1000_GEN_CTL_READY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #5
	bl	_udelay
	mov	x0, x19
	bl	_rd32
	mov	x20, x0
	ldr	x8, [x23]
	tst	x8, x0
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	x9, [x21]
	cmp	x22, x9
	b.lt	LBB0_2
LBB0_4:
	tst	x8, x20
	b.eq	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x8, _E1000_GEN_CTL_READY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E1000_GEN_CTL_READY@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	tst	x8, x20
	b.ne	LBB0_5
LBB0_7:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_hw_dbg
Lloh12:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_GEN_CTL_ADDRESS_SHIFT,8,3 ; @E1000_GEN_CTL_ADDRESS_SHIFT
	.comm	_E1000_GEN_POLL_TIMEOUT,8,3     ; @E1000_GEN_POLL_TIMEOUT
	.comm	_E1000_GEN_CTL_READY,8,3        ; @E1000_GEN_CTL_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reg %08x did not indicate ready\n"

	.comm	_E1000_ERR_PHY,4,2              ; @E1000_ERR_PHY
.subsections_via_symbols
