	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slimpro_mbox_startup
_slimpro_mbox_startup:                  ## @slimpro_mbox_startup
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_slimpro_mbox_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MBOX_CON_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_devm_request_irq
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edx
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	%r15d, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_MBOX_STATUS_ACK_MASK@GOTPCREL(%rip), %r15
	movq	_MBOX_STATUS_AVAIL_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	orl	(%r15), %edi
	movq	_REG_DB_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_REG_DB_STATMASK@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movl	(%r12), %edi
	orl	(%r15), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r13), %rsi
	addq	(%rbx), %rsi
	callq	_writel
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_slimpro_mbox_irq,4,2           ## @slimpro_mbox_irq
	.comm	_MBOX_CON_NAME,4,2              ## @MBOX_CON_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register mailbox interrupt %d\n"

	.comm	_MBOX_STATUS_ACK_MASK,4,2       ## @MBOX_STATUS_ACK_MASK
	.comm	_MBOX_STATUS_AVAIL_MASK,4,2     ## @MBOX_STATUS_AVAIL_MASK
	.comm	_REG_DB_STAT,8,3                ## @REG_DB_STAT
	.comm	_REG_DB_STATMASK,8,3            ## @REG_DB_STATMASK
	.no_dead_strip	_slimpro_mbox_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slimpro_mbox_startup
_slimpro_mbox_startup:                  ; @slimpro_mbox_startup
	.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	x19, [x0]
	ldp	w1, w0, [x19, #8]
Lloh0:
	adrp	x8, _slimpro_mbox_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _slimpro_mbox_irq@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _MBOX_CON_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBOX_CON_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	mov	x20, x0
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldp	w2, w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x20, _MBOX_STATUS_ACK_MASK@GOTPAGE
Lloh9:
	ldr	x20, [x20, _MBOX_STATUS_ACK_MASK@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh10:
	adrp	x21, _MBOX_STATUS_AVAIL_MASK@GOTPAGE
Lloh11:
	ldr	x21, [x21, _MBOX_STATUS_AVAIL_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _REG_DB_STAT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REG_DB_STAT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh15:
	adrp	x22, _REG_DB_STATMASK@GOTPAGE
Lloh16:
	ldr	x22, [x22, _REG_DB_STATMASK@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w8, w9, w8
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_slimpro_mbox_irq,4,2           ; @slimpro_mbox_irq
	.comm	_MBOX_CON_NAME,4,2              ; @MBOX_CON_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register mailbox interrupt %d\n"

	.comm	_MBOX_STATUS_ACK_MASK,4,2       ; @MBOX_STATUS_ACK_MASK
	.comm	_MBOX_STATUS_AVAIL_MASK,4,2     ; @MBOX_STATUS_AVAIL_MASK
	.comm	_REG_DB_STAT,8,3                ; @REG_DB_STAT
	.comm	_REG_DB_STATMASK,8,3            ; @REG_DB_STATMASK
	.no_dead_strip	_slimpro_mbox_startup
.subsections_via_symbols
