	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_set_hw_ready
_il4965_set_hw_ready:                   ## @il4965_set_hw_ready
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CSR_HW_IF_CONFIG_REG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CSR_HW_IF_CONFIG_REG_BIT_NIC_READY@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_il_set_bit
	movl	(%r14), %esi
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	movl	$100, %r8d
	callq	__il_poll_bit
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	$1, (%rbx)
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	cmpl	$0, (%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
LBB0_3:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_D_INFO                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_HW_IF_CONFIG_REG,4,2       ## @CSR_HW_IF_CONFIG_REG
	.comm	_CSR_HW_IF_CONFIG_REG_BIT_NIC_READY,4,2 ## @CSR_HW_IF_CONFIG_REG_BIT_NIC_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hardware %s ready\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"not"

	.no_dead_strip	_il4965_set_hw_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_set_hw_ready
_il4965_set_hw_ready:                   ; @il4965_set_hw_ready
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _CSR_HW_IF_CONFIG_REG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CSR_HW_IF_CONFIG_REG@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _CSR_HW_IF_CONFIG_REG_BIT_NIC_READY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CSR_HW_IF_CONFIG_REG_BIT_NIC_READY@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_il_set_bit
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x2
	mov	w4, #100
	bl	__il_poll_bit
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh8:
	adrp	x10, l_.str.2@PAGE
Lloh9:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
LBB0_3:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_D_INFO
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_HW_IF_CONFIG_REG,4,2       ; @CSR_HW_IF_CONFIG_REG
	.comm	_CSR_HW_IF_CONFIG_REG_BIT_NIC_READY,4,2 ; @CSR_HW_IF_CONFIG_REG_BIT_NIC_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hardware %s ready\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"not"

	.no_dead_strip	_il4965_set_hw_ready
.subsections_via_symbols
