	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__il_grab_nic_access            ## -- Begin function _il_grab_nic_access
	.p2align	4, 0x90
__il_grab_nic_access:                   ## @_il_grab_nic_access
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	__il_set_bit
	movl	(%r14), %esi
	movq	_CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY@GOTPCREL(%rip), %rax
	movq	_CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$15000, %r8d                    ## imm = 0x3A98
	callq	__il_poll_bit
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	__il_rd
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_WARN_ONCE
	movq	_CSR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_RESET_REG_FLAG_FORCE_NMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	__il_wr
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$1, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_GP_CNTRL,4,2               ## @CSR_GP_CNTRL
	.comm	_CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ,4,2 ## @CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ
	.comm	_CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN,4,2 ## @CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN
	.comm	_CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY,4,2 ## @CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY
	.comm	_CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP,4,2 ## @CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting for ucode processor access (CSR_GP_CNTRL 0x%08x)\n"

	.comm	_CSR_RESET,4,2                  ## @CSR_RESET
	.comm	_CSR_RESET_REG_FLAG_FORCE_NMI,4,2 ## @CSR_RESET_REG_FLAG_FORCE_NMI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__il_grab_nic_access            ; -- Begin function _il_grab_nic_access
	.p2align	2
__il_grab_nic_access:                   ; @_il_grab_nic_access
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _CSR_GP_CNTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CSR_GP_CNTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	__il_set_bit
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN@GOTPAGEOFF]
Lloh7:
	adrp	x9, _CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	w4, #15000
	bl	__il_poll_bit
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	bl	__il_rd
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
Lloh16:
	adrp	x8, _CSR_RESET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CSR_RESET@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _CSR_RESET_REG_FLAG_FORCE_NMI@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CSR_RESET_REG_FLAG_FORCE_NMI@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	__il_wr
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_GP_CNTRL,4,2               ; @CSR_GP_CNTRL
	.comm	_CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ,4,2 ; @CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ
	.comm	_CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN,4,2 ; @CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN
	.comm	_CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY,4,2 ; @CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY
	.comm	_CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP,4,2 ; @CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting for ucode processor access (CSR_GP_CNTRL 0x%08x)\n"

	.comm	_CSR_RESET,4,2                  ; @CSR_RESET
	.comm	_CSR_RESET_REG_FLAG_FORCE_NMI,4,2 ; @CSR_RESET_REG_FLAG_FORCE_NMI
.subsections_via_symbols
