	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_get_hw_semaphore_82571
_e1000_get_hw_semaphore_82571:          ## @e1000_get_hw_semaphore_82571
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	4(%rdi), %eax
	leal	1(%rax), %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$3, (%rdi)
	movl	$1, %r14d
	cmovll	%r13d, %r14d
	testl	%r14d, %r14d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.3:
	xorl	%ebx, %ebx
	movq	_SWSM@GOTPCREL(%rip), %r15
	movq	_E1000_SWSM_SMBI@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_er32
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_4
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	cmpl	%r14d, %ebx
	jne	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_7:
	xorl	%r15d, %r15d
	movl	$0, %ebx
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_11
## %bb.8:
	xorl	%ebx, %ebx
	movq	_SWSM@GOTPCREL(%rip), %r12
	movq	_E1000_SWSM_SWESMBI@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_er32
	movl	(%r12), %edi
	orl	(%r14), %eax
	movl	%eax, %esi
	callq	_ew32
	movl	(%r12), %edi
	callq	_er32
	testl	%eax, (%r14)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	incl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_9
	jmp	LBB0_12
LBB0_11:
	cmpl	%r13d, %ebx
	jne	LBB0_13
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_e1000_put_hw_semaphore_82571
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWSM,4,2                       ## @SWSM
	.comm	_E1000_SWSM_SMBI,4,2            ## @E1000_SWSM_SMBI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Driver can't access device - SMBI bit is set.\n"

	.comm	_E1000_SWSM_SWESMBI,4,2         ## @E1000_SWSM_SWESMBI
L_.str.1:                               ## @.str.1
	.asciz	"Driver can't access the NVM\n"

	.comm	_E1000_ERR_NVM,4,2              ## @E1000_ERR_NVM
	.no_dead_strip	_e1000_get_hw_semaphore_82571
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_get_hw_semaphore_82571
_e1000_get_hw_semaphore_82571:          ; @e1000_get_hw_semaphore_82571
	.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, x0
	ldp	w8, w20, [x0]
	cmp	w8, #2
	mov	w8, #1
	csinc	w22, w8, w20, gt
Lloh0:
	adrp	x21, _SWSM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SWSM@GOTPAGEOFF]
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w23, #0
Lloh2:
	adrp	x24, _E1000_SWSM_SMBI@GOTPAGE
Lloh3:
	ldr	x24, [x24, _E1000_SWSM_SMBI@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_er32
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
	add	w23, w23, #1
	cmp	w22, w23
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w23, #0
LBB0_5:
	cmp	w23, w22
	b.ne	LBB0_7
LBB0_6:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_7:
	mov	w22, #0
	tbnz	w20, #31, LBB0_11
; %bb.8:
	add	w23, w20, #1
Lloh6:
	adrp	x24, _E1000_SWSM_SWESMBI@GOTPAGE
Lloh7:
	ldr	x24, [x24, _E1000_SWSM_SWESMBI@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_er32
	ldr	w8, [x21]
	ldr	w9, [x24]
	orr	w1, w9, w0
	mov	x0, x8
	bl	_ew32
	ldr	w0, [x21]
	bl	_er32
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
	add	w22, w22, #1
	cmp	w23, w22
	b.ne	LBB0_9
	b	LBB0_12
LBB0_11:
	add	w8, w20, #1
	cmp	w22, w8
	b.ne	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_e1000_put_hw_semaphore_82571
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
Lloh10:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SWSM,4,2                       ; @SWSM
	.comm	_E1000_SWSM_SMBI,4,2            ; @E1000_SWSM_SMBI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Driver can't access device - SMBI bit is set.\n"

	.comm	_E1000_SWSM_SWESMBI,4,2         ; @E1000_SWSM_SWESMBI
l_.str.1:                               ; @.str.1
	.asciz	"Driver can't access the NVM\n"

	.comm	_E1000_ERR_NVM,4,2              ; @E1000_ERR_NVM
	.no_dead_strip	_e1000_get_hw_semaphore_82571
.subsections_via_symbols
