	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_mbox_irq_alloc
_bnad_mbox_irq_alloc:                   ## @bnad_mbox_irq_alloc
	.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
	leaq	12(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_BNAD_CF_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_BNAD_MAILBOX_MSIX_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	24(%rbx), %rax
	movq	_bnad_msix_mbox_handler@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	16(%rbx), %rax
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	_bnad_isr@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	(%rcx), %r12
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	4(%rbx), %edi
	movq	_BNAD_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movq	_BNAD_RF_MBOX_IRQ_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_set_bit
	movq	_mbox_intr_disabled@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_BNAD_UPDATE_CTR
	movl	4(%rbx), %ecx
	movl	%r13d, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rbx, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_request_irq                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNAD_CF_MSIX,4,2               ## @BNAD_CF_MSIX
	.comm	_bnad_msix_mbox_handler,8,3     ## @bnad_msix_mbox_handler
	.comm	_BNAD_MAILBOX_MSIX_INDEX,8,3    ## @BNAD_MAILBOX_MSIX_INDEX
	.comm	_bnad_isr,8,3                   ## @bnad_isr
	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_BNAD_NAME,8,3                  ## @BNAD_NAME
	.comm	_BNAD_RF_MBOX_IRQ_DISABLED,4,2  ## @BNAD_RF_MBOX_IRQ_DISABLED
	.comm	_mbox_intr_disabled,4,2         ## @mbox_intr_disabled
	.no_dead_strip	_bnad_mbox_irq_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_mbox_irq_alloc
_bnad_mbox_irq_alloc:                   ; @bnad_mbox_irq_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x21, x0, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _BNAD_CF_MSIX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNAD_CF_MSIX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, #0
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _BNAD_MAILBOX_MSIX_INDEX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNAD_MAILBOX_MSIX_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
Lloh6:
	adrp	x9, _bnad_msix_mbox_handler@GOTPAGE
Lloh7:
	ldr	x9, [x9, _bnad_msix_mbox_handler@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x9]
Lloh11:
	adrp	x9, _bnad_isr@GOTPAGE
Lloh12:
	ldr	x9, [x9, _bnad_isr@GOTPAGEOFF]
LBB0_3:
	ldr	x22, [x9]
	ldr	w23, [x8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x8, _BNAD_NAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNAD_NAME@GOTPAGEOFF]
Lloh15:
	ldr	x2, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
Lloh18:
	adrp	x8, _BNAD_RF_MBOX_IRQ_DISABLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BNAD_RF_MBOX_IRQ_DISABLED@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
Lloh21:
	adrp	x8, _mbox_intr_disabled@GOTPAGE
Lloh22:
	ldr	x8, [x8, _mbox_intr_disabled@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BNAD_UPDATE_CTR
	ldr	w3, [x19, #4]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	mov	x4, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_request_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BNAD_CF_MSIX,4,2               ; @BNAD_CF_MSIX
	.comm	_bnad_msix_mbox_handler,8,3     ; @bnad_msix_mbox_handler
	.comm	_BNAD_MAILBOX_MSIX_INDEX,8,3    ; @BNAD_MAILBOX_MSIX_INDEX
	.comm	_bnad_isr,8,3                   ; @bnad_isr
	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_BNAD_NAME,8,3                  ; @BNAD_NAME
	.comm	_BNAD_RF_MBOX_IRQ_DISABLED,4,2  ; @BNAD_RF_MBOX_IRQ_DISABLED
	.comm	_mbox_intr_disabled,4,2         ; @mbox_intr_disabled
	.no_dead_strip	_bnad_mbox_irq_alloc
.subsections_via_symbols
