	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_tx_msix_register
_bnad_tx_msix_register:                 ## @bnad_tx_msix_register
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%ecx, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movslq	(%rax), %r12
	movl	8(%rax), %edi
	movq	8(%r15), %rcx
	movq	(%rcx), %rdx
	movl	4(%rax), %ecx
	addl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movq	(%r15), %rax
	movl	(%rax,%r12,4), %edi
	movq	_bnad_msix_tx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %r8
	movl	8(%r8), %ecx
	xorl	%edx, %edx
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_2
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_6:
	movl	$-1, %r12d
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	decl	%ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_bnad_tx_msix_unregister
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s TXQ %d"

	.comm	_bnad_msix_tx,8,3               ## @bnad_msix_tx
	.no_dead_strip	_bnad_tx_msix_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_tx_msix_register
_bnad_tx_msix_register:                 ; @bnad_tx_msix_register
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w3, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x23, #0
	mov	w24, w3
Lloh0:
	adrp	x25, _bnad_msix_tx@GOTPAGE
Lloh1:
	ldr	x25, [x25, _bnad_msix_tx@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	lsl	x26, x23, #3
	ldr	x8, [x8, x26]
	ldr	x9, [x20, #8]
	ldr	x2, [x9]
	ldrsw	x27, [x8]
	ldp	w8, w0, [x8, #4]
	add	w3, w8, w21
	mov	x1, x22
	bl	_sprintf
	ldr	x8, [x20]
	ldr	w0, [x8, x27, lsl #2]
	ldr	w1, [x25]
	ldr	x8, [x19]
	ldr	x4, [x8, x26]
	ldr	w3, [x4, #8]
	mov	w2, #0
	bl	_request_irq
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	cbz	w23, LBB0_7
; %bb.6:
	sub	w2, w23, #1
	mov	x0, x20
	mov	x1, x19
	bl	_bnad_tx_msix_unregister
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s TXQ %d"

	.comm	_bnad_msix_tx,8,3               ; @bnad_msix_tx
	.no_dead_strip	_bnad_tx_msix_register
.subsections_via_symbols
