	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_setup_hardware
_ipw_setup_hardware:                    ## @ipw_setup_hardware
	.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	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	_HW_VERSION_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_DCR_RXRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IODCR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	24(%rbx), %rsi
	callq	_outw
	movq	_DCR_TXRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	addq	24(%rbx), %rsi
	callq	_outw
	movq	_IER_TXENABLED@GOTPCREL(%rip), %rax
	movq	_IER_RXENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_IOIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_outw
	jmp	LBB0_3
LBB0_2:
	movq	16(%rbx), %rdi
	callq	_readw
                                        ## kill: def $ax killed $ax def $eax
	orl	$1, %eax
	movq	16(%rbx), %rsi
	movzwl	%ax, %edi
	callq	_writew
LBB0_3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_VERSION_1,8,3               ## @HW_VERSION_1
	.comm	_DCR_RXRESET,4,2                ## @DCR_RXRESET
	.comm	_IODCR,8,3                      ## @IODCR
	.comm	_DCR_TXRESET,4,2                ## @DCR_TXRESET
	.comm	_IER_TXENABLED,4,2              ## @IER_TXENABLED
	.comm	_IER_RXENABLED,4,2              ## @IER_RXENABLED
	.comm	_IOIER,8,3                      ## @IOIER
	.no_dead_strip	_ipw_setup_hardware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_setup_hardware
_ipw_setup_hardware:                    ; @ipw_setup_hardware
	.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	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _HW_VERSION_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HW_VERSION_1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DCR_RXRESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCR_RXRESET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
Lloh6:
	adrp	x21, _IODCR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _IODCR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outw
Lloh8:
	adrp	x8, _DCR_TXRESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCR_TXRESET@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outw
Lloh11:
	adrp	x8, _IER_TXENABLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IER_TXENABLED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IER_RXENABLED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IER_RXENABLED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x20, #24]
Lloh17:
	adrp	x9, _IOIER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IOIER@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outw
	b	LBB0_3
LBB0_2:
	ldr	x0, [x20, #16]
	bl	_readw
	orr	w0, w0, #0x1
	ldr	x1, [x20, #16]
	bl	_writew
LBB0_3:
	mov	x0, x19
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_VERSION_1,8,3               ; @HW_VERSION_1
	.comm	_DCR_RXRESET,4,2                ; @DCR_RXRESET
	.comm	_IODCR,8,3                      ; @IODCR
	.comm	_DCR_TXRESET,4,2                ; @DCR_TXRESET
	.comm	_IER_TXENABLED,4,2              ; @IER_TXENABLED
	.comm	_IER_RXENABLED,4,2              ; @IER_RXENABLED
	.comm	_IOIER,8,3                      ; @IOIER
	.no_dead_strip	_ipw_setup_hardware
.subsections_via_symbols
