	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_init_nic
_ipw_init_nic:                          ## @ipw_init_nic
	.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
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_TRACE
	movq	_IPW_GP_CNTRL_RW@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_IPW_GP_CNTRL_BIT_INIT_DONE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ipw_set_bit
	movq	_IPW_READ_INT_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPW_BIT_INT_HOST_SRAM_READ_INT_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ipw_write32
	movl	(%r14), %esi
	movq	_IPW_GP_CNTRL_BIT_CLOCK_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$250, %ecx
	callq	_ipw_poll_bit
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_IPW_DEBUG_INFO
LBB0_2:
	movq	_IPW_RESET_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPW_RESET_REG_SW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ipw_set_bit
	movl	$10, %edi
	callq	_udelay
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ipw_set_bit
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_TRACE
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	">>\n"

	.comm	_IPW_GP_CNTRL_RW,4,2            ## @IPW_GP_CNTRL_RW
	.comm	_IPW_GP_CNTRL_BIT_INIT_DONE,4,2 ## @IPW_GP_CNTRL_BIT_INIT_DONE
	.comm	_IPW_READ_INT_REGISTER,4,2      ## @IPW_READ_INT_REGISTER
	.comm	_IPW_BIT_INT_HOST_SRAM_READ_INT_REGISTER,4,2 ## @IPW_BIT_INT_HOST_SRAM_READ_INT_REGISTER
	.comm	_IPW_GP_CNTRL_BIT_CLOCK_READY,4,2 ## @IPW_GP_CNTRL_BIT_CLOCK_READY
L_.str.1:                               ## @.str.1
	.asciz	"FAILED wait for clock stablization\n"

	.comm	_IPW_RESET_REG,4,2              ## @IPW_RESET_REG
	.comm	_IPW_RESET_REG_SW_RESET,4,2     ## @IPW_RESET_REG_SW_RESET
	.no_dead_strip	_ipw_init_nic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_init_nic
_ipw_init_nic:                          ; @ipw_init_nic
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_TRACE
Lloh2:
	adrp	x20, _IPW_GP_CNTRL_RW@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IPW_GP_CNTRL_RW@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x21, _IPW_GP_CNTRL_BIT_INIT_DONE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _IPW_GP_CNTRL_BIT_INIT_DONE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ipw_set_bit
Lloh6:
	adrp	x8, _IPW_READ_INT_REGISTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPW_READ_INT_REGISTER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _IPW_BIT_INT_HOST_SRAM_READ_INT_REGISTER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPW_BIT_INT_HOST_SRAM_READ_INT_REGISTER@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ipw_write32
	ldr	w1, [x20]
Lloh12:
	adrp	x8, _IPW_GP_CNTRL_BIT_CLOCK_READY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPW_GP_CNTRL_BIT_CLOCK_READY@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #250
	bl	_ipw_poll_bit
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_INFO
LBB0_2:
Lloh17:
	adrp	x8, _IPW_RESET_REG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IPW_RESET_REG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _IPW_RESET_REG_SW_RESET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IPW_RESET_REG_SW_RESET@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ipw_set_bit
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ipw_set_bit
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_TRACE
	mov	w0, #0
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	">>\n"

	.comm	_IPW_GP_CNTRL_RW,4,2            ; @IPW_GP_CNTRL_RW
	.comm	_IPW_GP_CNTRL_BIT_INIT_DONE,4,2 ; @IPW_GP_CNTRL_BIT_INIT_DONE
	.comm	_IPW_READ_INT_REGISTER,4,2      ; @IPW_READ_INT_REGISTER
	.comm	_IPW_BIT_INT_HOST_SRAM_READ_INT_REGISTER,4,2 ; @IPW_BIT_INT_HOST_SRAM_READ_INT_REGISTER
	.comm	_IPW_GP_CNTRL_BIT_CLOCK_READY,4,2 ; @IPW_GP_CNTRL_BIT_CLOCK_READY
l_.str.1:                               ; @.str.1
	.asciz	"FAILED wait for clock stablization\n"

	.comm	_IPW_RESET_REG,4,2              ; @IPW_RESET_REG
	.comm	_IPW_RESET_REG_SW_RESET,4,2     ; @IPW_RESET_REG_SW_RESET
	.no_dead_strip	_ipw_init_nic
.subsections_via_symbols
