	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_prepare_card_hw
_il4965_prepare_card_hw:                ## @il4965_prepare_card_hw
	.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
	movl	$0, (%rdi)
	callq	_il4965_set_hw_ready
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_CSR_HW_IF_CONFIG_REG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CSR_HW_IF_CONFIG_REG_PREPARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_il_set_bit
	movl	(%r14), %esi
	movq	_CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	notl	%edx
	movq	%rbx, %rdi
	movl	$150000, %r8d                   ## imm = 0x249F0
	callq	__il_poll_bit
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_il4965_set_hw_ready            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_HW_IF_CONFIG_REG,4,2       ## @CSR_HW_IF_CONFIG_REG
	.comm	_CSR_HW_IF_CONFIG_REG_PREPARE,4,2 ## @CSR_HW_IF_CONFIG_REG_PREPARE
	.comm	_CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE,4,2 ## @CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_il4965_prepare_card_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_prepare_card_hw
_il4965_prepare_card_hw:                ; @il4965_prepare_card_hw
	.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
	str	wzr, [x0]
	bl	_il4965_set_hw_ready
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _CSR_HW_IF_CONFIG_REG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CSR_HW_IF_CONFIG_REG@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _CSR_HW_IF_CONFIG_REG_PREPARE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSR_HW_IF_CONFIG_REG_PREPARE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_il_set_bit
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mvn	w2, w3
	mov	x0, x19
	mov	w4, #18928
	movk	w4, #2, lsl #16
	bl	__il_poll_bit
Lloh8:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_il4965_set_hw_ready
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_HW_IF_CONFIG_REG,4,2       ; @CSR_HW_IF_CONFIG_REG
	.comm	_CSR_HW_IF_CONFIG_REG_PREPARE,4,2 ; @CSR_HW_IF_CONFIG_REG_PREPARE
	.comm	_CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE,4,2 ; @CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_il4965_prepare_card_hw
.subsections_via_symbols
