	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bnad_txrx_irq_alloc
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_2:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bnad_txrx_irq_alloc:                   ## @bnad_txrx_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	%rcx, %r12
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	leaq	12(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	(%r13), %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_BNAD_CF_MSIX@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_BNA_INTR_T_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	cmpl	$129, %r15d
	je	LBB0_10
## %bb.3:
	cmpl	$128, %r15d
	jne	LBB0_11
## %bb.4:
	movq	_BNAD_MAILBOX_MSIX_VECTORS@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	movq	_BNA_INTR_T_INTX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	$1, (%r12)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpl	$129, %r15d
	je	LBB0_25
## %bb.7:
	cmpl	$128, %r15d
	jne	LBB0_27
## %bb.8:
	movq	_BNAD_INTX_TX_IB_BITMASK@GOTPCREL(%rip), %rdx
	jmp	LBB0_26
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_27
LBB0_10:
	movl	8(%r13), %eax
	imull	4(%r13), %eax
	movq	_BNAD_MAILBOX_MSIX_VECTORS@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addl	(%rcx), %ebx
	addl	%eax, %ebx
	jmp	LBB0_12
LBB0_11:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BUG
LBB0_12:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.13:
	movq	8(%r12), %rdx
	cmpl	$8, %ecx
	jae	LBB0_16
## %bb.14:
	xorl	%esi, %esi
	jmp	LBB0_22
LBB0_16:
	movl	%ecx, %esi
	andl	$-8, %esi
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rsi), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_28
## %bb.17:
	movq	%r8, %rax
	andq	$-2, %rax
	leal	4(%rbx), %edi
	movd	%edi, %xmm1
	pshufd	$0, %xmm1, %xmm2                ## xmm2 = xmm1[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	xorl	%edi, %edi
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [8,8,8,8]
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [16,16,16,16]
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm5
	paddd	%xmm1, %xmm5
	movdqa	%xmm2, %xmm6
	paddd	%xmm1, %xmm6
	movdqu	%xmm5, (%rdx,%rdi,4)
	movdqu	%xmm6, 16(%rdx,%rdi,4)
	movdqa	%xmm1, %xmm5
	paddd	%xmm3, %xmm5
	movdqa	%xmm0, %xmm6
	paddd	%xmm5, %xmm6
	paddd	%xmm2, %xmm5
	movdqu	%xmm6, 32(%rdx,%rdi,4)
	movdqu	%xmm5, 48(%rdx,%rdi,4)
	addq	$16, %rdi
	paddd	%xmm4, %xmm1
	addq	$-2, %rax
	jne	LBB0_18
## %bb.19:
	testb	$1, %r8b
	je	LBB0_21
LBB0_20:
	paddd	%xmm1, %xmm0
	leal	4(%rbx), %eax
	movd	%eax, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	paddd	%xmm1, %xmm2
	movdqu	%xmm0, (%rdx,%rdi,4)
	movdqu	%xmm2, 16(%rdx,%rdi,4)
LBB0_21:
	xorl	%eax, %eax
	cmpq	%rcx, %rsi
	je	LBB0_27
LBB0_22:
	movl	%ebx, %eax
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rax,%rsi), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_23
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_25:
	movq	_BNAD_INTX_RX_IB_BITMASK@GOTPCREL(%rip), %rdx
LBB0_26:
	movl	(%rdx), %edx
	movl	%edx, (%rcx)
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_BNAD_CF_MSIX,4,2               ## @BNAD_CF_MSIX
	.comm	_BNA_INTR_T_MSIX,4,2            ## @BNA_INTR_T_MSIX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BNAD_MAILBOX_MSIX_VECTORS,4,2  ## @BNAD_MAILBOX_MSIX_VECTORS
	.comm	_BNA_INTR_T_INTX,4,2            ## @BNA_INTR_T_INTX
	.comm	_BNAD_INTX_TX_IB_BITMASK,4,2    ## @BNAD_INTX_TX_IB_BITMASK
	.comm	_BNAD_INTX_RX_IB_BITMASK,4,2    ## @BNAD_INTX_RX_IB_BITMASK
	.no_dead_strip	_bnad_txrx_irq_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function bnad_txrx_irq_alloc
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bnad_txrx_irq_alloc:                   ; @bnad_txrx_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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	add	x23, x0, #12
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	w24, [x22]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
Lloh0:
	adrp	x8, _BNAD_CF_MSIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNAD_CF_MSIX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _BNA_INTR_T_MSIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNA_INTR_T_MSIX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.2:
	cmp	w20, #129
	b.eq	LBB0_10
; %bb.3:
	cmp	w20, #128
	b.ne	LBB0_11
; %bb.4:
Lloh9:
	adrp	x8, _BNAD_MAILBOX_MSIX_VECTORS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BNAD_MAILBOX_MSIX_VECTORS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w8, w8, w21
	b	LBB0_12
LBB0_5:
Lloh12:
	adrp	x8, _BNA_INTR_T_INTX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNA_INTR_T_INTX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w0, #1
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.6:
	mov	x8, x0
	cmp	w20, #129
	b.eq	LBB0_21
; %bb.7:
	cmp	w20, #128
	b.ne	LBB0_20
; %bb.8:
	mov	w0, #0
Lloh18:
	adrp	x9, _BNAD_INTX_TX_IB_BITMASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BNAD_INTX_TX_IB_BITMASK@GOTPAGEOFF]
	b	LBB0_22
LBB0_9:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
LBB0_10:
Lloh23:
	adrp	x8, _BNAD_MAILBOX_MSIX_VECTORS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BNAD_MAILBOX_MSIX_VECTORS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldp	w9, w10, [x22, #4]
	add	w8, w8, w21
	madd	w8, w10, w9, w8
	b	LBB0_12
LBB0_11:
	bl	_BUG
	mov	w8, #0
LBB0_12:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.13:
	ldr	x10, [x19, #8]
	cmp	w9, #16
	b.hs	LBB0_15
; %bb.14:
	mov	x11, #0
	b	LBB0_18
LBB0_15:
	dup.4s	v0, w8
	add	w11, w8, #4
	dup.4s	v1, w11
	add	w11, w8, #8
	dup.4s	v2, w11
	add	w11, w8, #12
	dup.4s	v3, w11
	and	x11, x9, #0xfffffff0
Lloh26:
	adrp	x12, lCPI0_0@PAGE
Lloh27:
	ldr	q4, [x12, lCPI0_0@PAGEOFF]
	add	x12, x10, #32
	movi.4s	v5, #16
	mov	x13, x11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v6, v0, v4
	add.4s	v7, v1, v4
	add.4s	v16, v2, v4
	add.4s	v17, v3, v4
	stp	q6, q7, [x12, #-32]
	stp	q16, q17, [x12], #64
	add.4s	v4, v4, v5
	subs	x13, x13, #16
	b.ne	LBB0_16
; %bb.17:
	cmp	x11, x9
	b.eq	LBB0_20
LBB0_18:
	add	w8, w8, w11
	add	x10, x10, x11, lsl #2
	sub	x9, x9, x11
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [x10], #4
	add	w8, w8, #1
	subs	x9, x9, #1
	b.ne	LBB0_19
LBB0_20:
	mov	w0, #0
	b	LBB0_23
LBB0_21:
	mov	w0, #0
Lloh28:
	adrp	x9, _BNAD_INTX_RX_IB_BITMASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BNAD_INTX_RX_IB_BITMASK@GOTPAGEOFF]
LBB0_22:
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_23:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdr	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_BNAD_CF_MSIX,4,2               ; @BNAD_CF_MSIX
	.comm	_BNA_INTR_T_MSIX,4,2            ; @BNA_INTR_T_MSIX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BNAD_MAILBOX_MSIX_VECTORS,4,2  ; @BNAD_MAILBOX_MSIX_VECTORS
	.comm	_BNA_INTR_T_INTX,4,2            ; @BNA_INTR_T_INTX
	.comm	_BNAD_INTX_TX_IB_BITMASK,4,2    ; @BNAD_INTX_TX_IB_BITMASK
	.comm	_BNAD_INTX_RX_IB_BITMASK,4,2    ; @BNAD_INTX_RX_IB_BITMASK
	.no_dead_strip	_bnad_txrx_irq_alloc
.subsections_via_symbols
