	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intr_mbox
_intr_mbox:                             ## @intr_mbox
	.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	_XUSB_CFG_ARU_SMI_INTR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_FPCI_RD4
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_FPCI_WR4
	movq	_ARU_SMI_INTR_FW_HANG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %ebx
	movq	_XUSB_FALCON_CPUCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_CSB_RD4
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_device_printf
LBB0_2:
	movq	_T_XUSB_CFG_ARU_MAILBOX_DATA_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_FPCI_RD4
	movl	%eax, %ebx
	movl	$0, -28(%rbp)
	movl	%eax, %edi
	callq	_ARU_MAILBOX_DATA_OUT_TYPE
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_ARU_MAILBOX_DATA_OUT_DATA
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %r8
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_process_msg
	movl	-28(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	movl	-32(%rbp), %edx
	movq	%r14, %rdi
	callq	_mbox_send_ack
	jmp	LBB0_5
LBB0_4:
	movq	_T_XUSB_CFG_ARU_MAILBOX_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARU_MAILBOX_OWNER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_FPCI_WR4
LBB0_5:
	movq	_T_XUSB_CFG_ARU_MAILBOX_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_FPCI_RD4
	movq	_ARU_MAILBOX_CMD_DEST_SMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_FPCI_WR4
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XUSB_CFG_ARU_SMI_INTR,4,2      ## @XUSB_CFG_ARU_SMI_INTR
	.comm	_ARU_SMI_INTR_FW_HANG,4,2       ## @ARU_SMI_INTR_FW_HANG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XUSB CPU firmware hang!!! CPUCTL: 0x%08X\n"

	.comm	_XUSB_FALCON_CPUCTL,4,2         ## @XUSB_FALCON_CPUCTL
	.comm	_T_XUSB_CFG_ARU_MAILBOX_DATA_OUT,4,2 ## @T_XUSB_CFG_ARU_MAILBOX_DATA_OUT
	.comm	_T_XUSB_CFG_ARU_MAILBOX_OWNER,4,2 ## @T_XUSB_CFG_ARU_MAILBOX_OWNER
	.comm	_ARU_MAILBOX_OWNER_NONE,4,2     ## @ARU_MAILBOX_OWNER_NONE
	.comm	_T_XUSB_CFG_ARU_MAILBOX_CMD,4,2 ## @T_XUSB_CFG_ARU_MAILBOX_CMD
	.comm	_ARU_MAILBOX_CMD_DEST_SMI,4,2   ## @ARU_MAILBOX_CMD_DEST_SMI
	.no_dead_strip	_intr_mbox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intr_mbox
_intr_mbox:                             ; @intr_mbox
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, _XUSB_CFG_ARU_SMI_INTR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XUSB_CFG_ARU_SMI_INTR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_FPCI_RD4
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_FPCI_WR4
Lloh2:
	adrp	x8, _ARU_SMI_INTR_FW_HANG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARU_SMI_INTR_FW_HANG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w20, [x19]
Lloh5:
	adrp	x8, _XUSB_FALCON_CPUCTL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XUSB_FALCON_CPUCTL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CSB_RD4
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_device_printf
LBB0_2:
Lloh10:
	adrp	x8, _T_XUSB_CFG_ARU_MAILBOX_DATA_OUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _T_XUSB_CFG_ARU_MAILBOX_DATA_OUT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_FPCI_RD4
	mov	x20, x0
	str	wzr, [sp, #12]
	bl	_ARU_MAILBOX_DATA_OUT_TYPE
	mov	x21, x0
	mov	x0, x20
	bl	_ARU_MAILBOX_DATA_OUT_DATA
	mov	x2, x0
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_process_msg
	ldr	w1, [sp, #12]
	cbz	w1, LBB0_4
; %bb.3:
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_mbox_send_ack
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _T_XUSB_CFG_ARU_MAILBOX_OWNER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _T_XUSB_CFG_ARU_MAILBOX_OWNER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _ARU_MAILBOX_OWNER_NONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARU_MAILBOX_OWNER_NONE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_FPCI_WR4
LBB0_5:
Lloh19:
	adrp	x20, _T_XUSB_CFG_ARU_MAILBOX_CMD@GOTPAGE
Lloh20:
	ldr	x20, [x20, _T_XUSB_CFG_ARU_MAILBOX_CMD@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_FPCI_RD4
Lloh21:
	adrp	x8, _ARU_MAILBOX_CMD_DEST_SMI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ARU_MAILBOX_CMD_DEST_SMI@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_FPCI_WR4
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_XUSB_CFG_ARU_SMI_INTR,4,2      ; @XUSB_CFG_ARU_SMI_INTR
	.comm	_ARU_SMI_INTR_FW_HANG,4,2       ; @ARU_SMI_INTR_FW_HANG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XUSB CPU firmware hang!!! CPUCTL: 0x%08X\n"

	.comm	_XUSB_FALCON_CPUCTL,4,2         ; @XUSB_FALCON_CPUCTL
	.comm	_T_XUSB_CFG_ARU_MAILBOX_DATA_OUT,4,2 ; @T_XUSB_CFG_ARU_MAILBOX_DATA_OUT
	.comm	_T_XUSB_CFG_ARU_MAILBOX_OWNER,4,2 ; @T_XUSB_CFG_ARU_MAILBOX_OWNER
	.comm	_ARU_MAILBOX_OWNER_NONE,4,2     ; @ARU_MAILBOX_OWNER_NONE
	.comm	_T_XUSB_CFG_ARU_MAILBOX_CMD,4,2 ; @T_XUSB_CFG_ARU_MAILBOX_CMD
	.comm	_ARU_MAILBOX_CMD_DEST_SMI,4,2   ; @ARU_MAILBOX_CMD_DEST_SMI
	.no_dead_strip	_intr_mbox
.subsections_via_symbols
