	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function altera_mbox_startup_receiver
_altera_mbox_startup_receiver:          ## @altera_mbox_startup_receiver
	.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, %r14
	callq	_mbox_chan_to_altera_mbox
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	16(%rbx), %edi
	movq	_altera_mbox_rx_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	$0, (%rbx)
LBB0_3:
	movq	%r14, 8(%rbx)
	addq	$4, %rbx
	movq	_altera_mbox_poll_rx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_MBOX_POLLING_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mod_timer
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_altera_mbox_rx_intmask
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_altera_mbox_rx_interrupt,4,2   ## @altera_mbox_rx_interrupt
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_altera_mbox_poll_rx,4,2        ## @altera_mbox_poll_rx
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MBOX_POLLING_MS,4,2            ## @MBOX_POLLING_MS
	.no_dead_strip	_altera_mbox_startup_receiver
.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_receiver
_altera_mbox_startup_receiver:          ; @altera_mbox_startup_receiver
	.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	x19, x0
	bl	_mbox_chan_to_altera_mbox
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x8, _altera_mbox_rx_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _altera_mbox_rx_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, x19
	bl	_request_irq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	str	wzr, [x20]
LBB0_3:
	str	x19, [x20, #8]
	add	x19, x20, #4
Lloh6:
	adrp	x8, _altera_mbox_poll_rx@GOTPAGE
Lloh7:
	ldr	x8, [x8, _altera_mbox_poll_rx@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_timer_setup
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	x20, [x8]
Lloh12:
	adrp	x8, _MBOX_POLLING_MS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBOX_POLLING_MS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	bl	_mod_timer
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	w1, #1
	bl	_altera_mbox_rx_intmask
LBB0_5:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_altera_mbox_rx_interrupt,4,2   ; @altera_mbox_rx_interrupt
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_altera_mbox_poll_rx,4,2        ; @altera_mbox_poll_rx
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MBOX_POLLING_MS,4,2            ; @MBOX_POLLING_MS
	.no_dead_strip	_altera_mbox_startup_receiver
.subsections_via_symbols
