	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function altera_mbox_startup_sender
_altera_mbox_startup_sender:            ## @altera_mbox_startup_sender
	.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
	callq	_mbox_chan_to_altera_mbox
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	4(%rax), %edi
	movq	_altera_mbox_tx_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movl	%ebx, %r14d
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_altera_mbox_tx_interrupt,4,2   ## @altera_mbox_tx_interrupt
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register mailbox interrupt:%d\n"

	.no_dead_strip	_altera_mbox_startup_sender
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function altera_mbox_startup_sender
_altera_mbox_startup_sender:            ; @altera_mbox_startup_sender
	.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
	bl	_mbox_chan_to_altera_mbox
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _altera_mbox_tx_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _altera_mbox_tx_interrupt@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	mov	x20, x0
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_altera_mbox_tx_interrupt,4,2   ; @altera_mbox_tx_interrupt
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register mailbox interrupt:%d\n"

	.no_dead_strip	_altera_mbox_startup_sender
.subsections_via_symbols
