	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_get_hw_semaphore_i210
_igb_get_hw_semaphore_i210:             ## @igb_get_hw_semaphore_i210
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	leaq	1(%r15), %r12
	xorl	%ebx, %ebx
	testq	%r15, %r15
	js	LBB0_1
## %bb.6:
	movq	_E1000_SWSM@GOTPCREL(%rip), %r13
	movq	_E1000_SWSM_SMBI@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_rd32
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$50, %edi
	callq	_udelay
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
	jmp	LBB0_9
LBB0_1:
	cmpq	%r12, %rbx
	jne	LBB0_2
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$0, (%rdi)
	callq	_igb_put_hw_semaphore
	xorl	%ebx, %ebx
	testq	%r15, %r15
	js	LBB0_11
## %bb.12:
	movq	_E1000_SWSM@GOTPCREL(%rip), %r13
	movq	_E1000_SWSM_SMBI@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_rd32
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$50, %edi
	callq	_udelay
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_13
	jmp	LBB0_15
LBB0_11:
	cmpq	%r12, %rbx
	jne	LBB0_2
LBB0_15:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_16
LBB0_2:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	js	LBB0_3
## %bb.17:
	movq	_E1000_SWSM@GOTPCREL(%rip), %r15
	movq	_E1000_SWSM_SWESMBI@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_rd32
	movl	(%r15), %edi
	orl	(%r13), %eax
	movl	%eax, %esi
	callq	_wr32
	movl	(%r15), %edi
	callq	_rd32
	testl	%eax, (%r13)
	jne	LBB0_3
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$50, %edi
	callq	_udelay
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_18
	jmp	LBB0_20
LBB0_3:
	cmpq	%r12, %rbx
	jne	LBB0_4
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_igb_put_hw_semaphore
	leaq	L_.str.1(%rip), %rdi
LBB0_16:
	callq	_hw_dbg
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_SWSM,4,2                 ## @E1000_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_ERR_NVM,8,3              ## @E1000_ERR_NVM
	.comm	_E1000_SWSM_SWESMBI,4,2         ## @E1000_SWSM_SWESMBI
L_.str.1:                               ## @.str.1
	.asciz	"Driver can't access the NVM\n"

	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.no_dead_strip	_igb_get_hw_semaphore_i210
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_get_hw_semaphore_i210
_igb_get_hw_semaphore_i210:             ; @igb_get_hw_semaphore_i210
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x21, [x0, #8]
	add	x20, x21, #1
	mov	x22, #0
	tbnz	x21, #63, LBB0_4
; %bb.1:
Lloh0:
	adrp	x23, _E1000_SWSM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _E1000_SWSM@GOTPAGEOFF]
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, [x23]
	bl	_rd32
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #50
	bl	_udelay
	add	x22, x22, #1
	cmp	x20, x22
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	cmp	x22, x20
	b.ne	LBB0_12
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.6:
	str	wzr, [x19]
	mov	x0, x19
	bl	_igb_put_hw_semaphore
	mov	x22, #0
	tbnz	x21, #63, LBB0_10
; %bb.7:
	add	x23, x21, #1
Lloh4:
	adrp	x24, _E1000_SWSM@GOTPAGE
Lloh5:
	ldr	x24, [x24, _E1000_SWSM@GOTPAGEOFF]
Lloh6:
	adrp	x25, _E1000_SWSM_SMBI@GOTPAGE
Lloh7:
	ldr	x25, [x25, _E1000_SWSM_SMBI@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_rd32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #50
	bl	_udelay
	add	x22, x22, #1
	cmp	x23, x22
	b.ne	LBB0_8
	b	LBB0_11
LBB0_10:
	cmp	x22, x20
	b.ne	LBB0_12
LBB0_11:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_18
LBB0_12:
	mov	x22, #0
	tbnz	x21, #63, LBB0_16
; %bb.13:
	add	x21, x21, #1
Lloh10:
	adrp	x23, _E1000_SWSM@GOTPAGE
Lloh11:
	ldr	x23, [x23, _E1000_SWSM@GOTPAGEOFF]
Lloh12:
	adrp	x24, _E1000_SWSM_SWESMBI@GOTPAGE
Lloh13:
	ldr	x24, [x24, _E1000_SWSM_SWESMBI@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_rd32
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w1, w9, w0
	mov	x0, x8
	bl	_wr32
	ldr	w0, [x23]
	bl	_rd32
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #50
	bl	_udelay
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_14
	b	LBB0_17
LBB0_16:
	cmp	x22, x20
	b.ne	LBB0_20
LBB0_17:
	mov	x0, x19
	bl	_igb_put_hw_semaphore
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_18:
	bl	_hw_dbg
Lloh16:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh19:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	b	LBB0_19
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_SWSM,4,2                 ; @E1000_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_ERR_NVM,8,3              ; @E1000_ERR_NVM
	.comm	_E1000_SWSM_SWESMBI,4,2         ; @E1000_SWSM_SWESMBI
l_.str.1:                               ; @.str.1
	.asciz	"Driver can't access the NVM\n"

	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.no_dead_strip	_igb_get_hw_semaphore_i210
.subsections_via_symbols
