	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_set_hw_ready
_iwl_pcie_set_hw_ready:                 ## @iwl_pcie_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, %r14
	movq	_CSR_HW_IF_CONFIG_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CSR_HW_IF_CONFIG_REG_BIT_NIC_READY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_iwl_set_bit
	movl	(%r15), %esi
	movl	(%rbx), %ecx
	movq	_HW_READY_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_iwl_poll_bit
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_CSR_MBOX_SET_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_MBOX_SET_REG_OS_ALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_iwl_set_bit
LBB0_2:
	testl	%ebx, %ebx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmovsq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_INFO
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.comm	_HW_READY_TIMEOUT,4,2           ## @HW_READY_TIMEOUT
	.comm	_CSR_MBOX_SET_REG,4,2           ## @CSR_MBOX_SET_REG
	.comm	_CSR_MBOX_SET_REG_OS_ALIVE,4,2  ## @CSR_MBOX_SET_REG_OS_ALIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hardware%s ready\n"

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

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

	.no_dead_strip	_iwl_pcie_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 iwl_pcie_set_hw_ready
_iwl_pcie_set_hw_ready:                 ; @iwl_pcie_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	_iwl_set_bit
	ldr	w1, [x20]
	ldr	w2, [x21]
Lloh4:
	adrp	x8, _HW_READY_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HW_READY_TIMEOUT@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_iwl_poll_bit
	mov	x20, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _CSR_MBOX_SET_REG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CSR_MBOX_SET_REG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _CSR_MBOX_SET_REG_OS_ALIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CSR_MBOX_SET_REG_OS_ALIVE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_iwl_set_bit
LBB0_2:
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh15:
	adrp	x9, l_.str.1@PAGE
Lloh16:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, lt
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.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
	.comm	_HW_READY_TIMEOUT,4,2           ; @HW_READY_TIMEOUT
	.comm	_CSR_MBOX_SET_REG,4,2           ; @CSR_MBOX_SET_REG
	.comm	_CSR_MBOX_SET_REG_OS_ALIVE,4,2  ; @CSR_MBOX_SET_REG_OS_ALIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hardware%s ready\n"

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

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

	.no_dead_strip	_iwl_pcie_set_hw_ready
.subsections_via_symbols
