	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_close_hardware
_do_close_hardware:                     ## @do_close_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), %rax
	movq	_HW_VERSION_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	_IOIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rdi), %rsi
	xorl	%edi, %edi
	callq	_outw
	movq	_IOIR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	16(%rbx), %rdi
	callq	_inw
	movl	%eax, %r14d
	movq	_IR_TXINTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r14d, %edi
	je	LBB0_3
## %bb.2:
	movq	(%r15), %rsi
	addq	16(%rbx), %rsi
	callq	_outw
LBB0_3:
	movq	_IR_RXINTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r14d, %edi
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rsi
	addq	16(%rbx), %rsi
	callq	_outw
LBB0_5:
	movl	8(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_synchronize_irq                ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_VERSION_1,8,3               ## @HW_VERSION_1
	.comm	_IOIER,8,3                      ## @IOIER
	.comm	_IOIR,8,3                       ## @IOIR
	.comm	_IR_TXINTR,4,2                  ## @IR_TXINTR
	.comm	_IR_RXINTR,4,2                  ## @IR_RXINTR
	.no_dead_strip	_do_close_hardware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_close_hardware
_do_close_hardware:                     ; @do_close_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
	ldr	x8, [x0]
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_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh3:
	adrp	x9, _IOIER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IOIER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_outw
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x21, _IOIR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _IOIR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inw
	mov	x20, x0
Lloh8:
	adrp	x8, _IR_TXINTR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IR_TXINTR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	tst	w0, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outw
LBB0_3:
Lloh11:
	adrp	x8, _IR_RXINTR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IR_RXINTR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	tst	w0, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outw
LBB0_5:
	ldr	w0, [x19, #8]
	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	_synchronize_irq
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_VERSION_1,8,3               ; @HW_VERSION_1
	.comm	_IOIER,8,3                      ; @IOIER
	.comm	_IOIR,8,3                       ; @IOIR
	.comm	_IR_TXINTR,4,2                  ; @IR_TXINTR
	.comm	_IR_RXINTR,4,2                  ; @IR_RXINTR
	.no_dead_strip	_do_close_hardware
.subsections_via_symbols
