	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a2232_shutdown_port
_a2232_shutdown_port:                   ## @a2232_shutdown_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %esi
	movl	20(%rdi), %edi
	callq	_a2232stat
	movq	%rax, %r14
	callq	_local_irq_save
	movq	_GS_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	movq	_HUPCL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%r14), %eax
	movq	_A2232CMD_CMask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_A2232CMD_Close@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	$-1, 4(%r14)
	movl	$-1, 8(%r14)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GS_ACTIVE,4,2                  ## @GS_ACTIVE
	.comm	_HUPCL,4,2                      ## @HUPCL
	.comm	_A2232CMD_CMask,4,2             ## @A2232CMD_CMask
	.comm	_A2232CMD_Close,4,2             ## @A2232CMD_Close
	.no_dead_strip	_a2232_shutdown_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a2232_shutdown_port
_a2232_shutdown_port:                   ; @a2232_shutdown_port
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w0, [x0, #20]
	ldr	w1, [x20, #16]
	bl	_a2232stat
	mov	x19, x0
	bl	_local_irq_save
Lloh0:
	adrp	x8, _GS_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GS_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
	str	w8, [x20, #8]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _HUPCL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HUPCL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _A2232CMD_CMask@GOTPAGE
Lloh7:
	ldr	x9, [x9, _A2232CMD_CMask@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh9:
	adrp	x9, _A2232CMD_Close@GOTPAGE
Lloh10:
	ldr	x9, [x9, _A2232CMD_Close@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	mov	w8, #-1
	str	w8, [x19, #4]
	str	w8, [x19, #8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_local_irq_restore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GS_ACTIVE,4,2                  ; @GS_ACTIVE
	.comm	_HUPCL,4,2                      ; @HUPCL
	.comm	_A2232CMD_CMask,4,2             ; @A2232CMD_CMask
	.comm	_A2232CMD_Close,4,2             ; @A2232CMD_Close
	.no_dead_strip	_a2232_shutdown_port
.subsections_via_symbols
