	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_get_hw_semaphore           ## -- Begin function igb_get_hw_semaphore
	.p2align	4, 0x90
_igb_get_hw_semaphore:                  ## @igb_get_hw_semaphore
	.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, %r12
	movq	(%rdi), %rbx
	leaq	1(%rbx), %r15
	testq	%rbx, %rbx
	js	LBB0_5
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_E1000_SWSM@GOTPCREL(%rip), %r13
	movq	_E1000_SWSM_SMBI@GOTPCREL(%rip), %r14
	movq	%r15, %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_rd32
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$50, %edi
	callq	_udelay
	decq	%r12
	jne	LBB0_2
	jmp	LBB0_4
LBB0_5:
	testq	%r15, %r15
	je	LBB0_4
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_16
LBB0_7:
	testq	%r12, %r12
	leaq	L_.str(%rip), %rdi
	je	LBB0_16
## %bb.8:
	testq	%rbx, %rbx
	js	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	movq	_E1000_SWSM_SWESMBI@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_rd32
	movl	(%r13), %edi
	orl	(%r14), %eax
	movl	%eax, %esi
	callq	_wr32
	movl	(%r13), %edi
	callq	_rd32
	testl	%eax, (%r14)
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$50, %edi
	callq	_udelay
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_10
	jmp	LBB0_15
LBB0_13:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_14:
	cmpq	%r15, %rbx
	jne	LBB0_18
LBB0_15:
	movq	%r12, %rdi
	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_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_17
	.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"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_get_hw_semaphore           ; -- Begin function igb_get_hw_semaphore
	.p2align	2
_igb_get_hw_semaphore:                  ; @igb_get_hw_semaphore
	.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	x23, [x0]
	add	x21, x23, #1
	tbnz	x23, #63, LBB0_4
; %bb.1:
Lloh0:
	adrp	x22, _E1000_SWSM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _E1000_SWSM@GOTPAGEOFF]
Lloh2:
	adrp	x24, _E1000_SWSM_SMBI@GOTPAGE
Lloh3:
	ldr	x24, [x24, _E1000_SWSM_SMBI@GOTPAGEOFF]
	mov	x25, x21
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_rd32
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #50
	bl	_udelay
	subs	x25, x25, #1
	b.ne	LBB0_2
	b	LBB0_14
LBB0_4:
	cbz	x21, LBB0_13
; %bb.5:
	mov	x20, #0
	b	LBB0_11
LBB0_6:
	cbz	x25, LBB0_13
; %bb.7:
	mov	x20, #0
	tbnz	x23, #63, LBB0_11
; %bb.8:
Lloh6:
	adrp	x23, _E1000_SWSM_SWESMBI@GOTPAGE
Lloh7:
	ldr	x23, [x23, _E1000_SWSM_SWESMBI@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_rd32
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w1, w9, w0
	mov	x0, x8
	bl	_wr32
	ldr	w0, [x22]
	bl	_rd32
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #50
	bl	_udelay
	add	x20, x20, #1
	cmp	x21, x20
	b.ne	LBB0_9
	b	LBB0_12
LBB0_11:
	cmp	x20, x21
	b.ne	LBB0_16
LBB0_12:
	mov	x0, x19
	bl	_igb_put_hw_semaphore
Lloh8:
	adrp	x20, l_.str.1@PAGE
Lloh9:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh10:
	adrp	x20, l_.str@PAGE
Lloh11:
	add	x20, x20, l_.str@PAGEOFF
LBB0_14:
	mov	x0, x20
	bl	_hw_dbg
Lloh12:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_15:
	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_16:
	mov	x0, #0
	b	LBB0_15
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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"

.subsections_via_symbols
