	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_isr
_bnad_isr:                              ## @bnad_isr
	.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	%rsi, %r12
	leaq	32(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_BNAD_RF_MBOX_IRQ_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r12), %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_25
## %bb.1:
	leaq	36(%r12), %r15
	movq	%r15, %rdi
	callq	_bna_intr_status_get
	xorl	%edi, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_25:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_26:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_BNA_IS_MBOX_ERR_INTR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_bna_mbox_handler
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	callq	_BNA_IS_INTX_DATA_INTR
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_26
## %bb.5:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.6:
	movl	4(%r12), %eax
	xorl	%r13d, %r13d
	movq	_BNAD_TXQ_TX_STARTED@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %ecx
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movslq	%ecx, %rdx
	cmpq	%rdx, %r13
	jge	LBB0_15
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testl	%eax, %eax
	jle	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	(%r15), %edi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r12, %rdi
	callq	_bnad_tx_complete
	jmp	LBB0_12
LBB0_15:
	movl	8(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.16:
	xorl	%r15d, %r15d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	8(%r12), %eax
LBB0_24:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_26
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movq	16(%r12), %r13
	movq	%r15, %rdx
	shlq	$4, %rdx
	cmpl	$0, 8(%r13,%rdx)
	je	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	12(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	addq	%rdx, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=2
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_23
LBB0_20:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	%r12, %rdi
	callq	_bnad_netif_rx_schedule_poll
	movl	12(%r12), %ecx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_BNAD_RF_MBOX_IRQ_DISABLED,4,2  ## @BNAD_RF_MBOX_IRQ_DISABLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_BNAD_TXQ_TX_STARTED,4,2        ## @BNAD_TXQ_TX_STARTED
	.no_dead_strip	_bnad_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_isr
_bnad_isr:                              ; @bnad_isr
	.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, x1
	add	x20, x1, #32
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _BNAD_RF_MBOX_IRQ_DISABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNAD_RF_MBOX_IRQ_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #40
	bl	_test_bit
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	add	x21, x19, #36
	mov	x0, x21
	bl	_bna_intr_status_get
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh3:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x20]
	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
	ret
LBB0_4:
	mov	x0, x21
	bl	_BNA_IS_MBOX_ERR_INTR
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_bna_mbox_handler
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	bl	_BNA_IS_INTX_DATA_INTR
	cbz	w0, LBB0_27
; %bb.7:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.8:
	mov	x20, #0
	ldr	w8, [x19, #4]
Lloh5:
	adrp	x21, _BNAD_TXQ_TX_STARTED@GOTPAGE
Lloh6:
	ldr	x21, [x21, _BNAD_TXQ_TX_STARTED@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x19]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x20, x20, #1
	cmp	x20, w9, sxtw
	b.ge	LBB0_17
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	cmp	x22, x8
	b.ge	LBB0_9
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x1, [x8, x22, lsl #3]
	cbz	x1, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w0, [x21]
	bl	_test_bit
	cbz	w0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x1, [x8, x22, lsl #3]
	mov	x0, x19
	bl	_bnad_tx_complete
	b	LBB0_13
LBB0_17:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.18:
	mov	x21, #0
Lloh7:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x19, #8]
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_3
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
	ldr	x10, [x19, #16]
	add	x9, x10, x21, lsl #4
	ldr	w9, [x9, #8]
	cbz	w9, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w9, [x19, #12]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x22, #0
	add	x23, x10, x21, lsl #4
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=2
	add	x22, x22, #1
	cmp	x22, w9, sxtw
	b.ge	LBB0_19
LBB0_25:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23]
	ldr	x1, [x8, x22, lsl #3]
	cbz	x1, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	mov	x0, x19
	bl	_bnad_netif_rx_schedule_poll
	ldr	w9, [x19, #12]
	b	LBB0_24
LBB0_27:
Lloh9:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BNAD_RF_MBOX_IRQ_DISABLED,4,2  ; @BNAD_RF_MBOX_IRQ_DISABLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_BNAD_TXQ_TX_STARTED,4,2        ; @BNAD_TXQ_TX_STARTED
	.no_dead_strip	_bnad_isr
.subsections_via_symbols
