	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_request_io_irq
_ena_request_io_irq:                    ## @ena_request_io_irq
	.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
	movq	_ENA_FLAG_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_ENA_IO_IRQ_FIRST_IDX@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	xorl	%r15d, %r15d
	cmpl	(%rbx), %r14d
	jge	LBB0_10
## %bb.3:
	leaq	(,%r14,8), %rax
	leaq	(%rax,%rax,2), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r12
	movl	(%r12,%r13), %r8d
	movl	4(%r12,%r13), %edi
	movl	20(%r12,%r13), %esi
	movl	16(%r12,%r13), %ecx
	xorl	%edx, %edx
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	leaq	(%r12,%r13), %r15
	addq	$8, %r15
	movq	8(%r12,%r13), %rax
	movl	(%rax), %r9d
	movl	4(%r12,%r13), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rcx
	movl	%r14d, %r8d
	callq	_netif_dbg
	movl	4(%r12,%r13), %edi
	movq	%r15, %rsi
	callq	_irq_set_affinity_hint
	incq	%r14
	movslq	(%rbx), %rax
	addq	$24, %r13
	cmpq	%rax, %r14
	jl	LBB0_4
## %bb.9:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_1:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %r15d
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_netif_err
	movq	_ENA_IO_IRQ_FIRST_IDX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpl	%r14d, %eax
	jge	LBB0_10
## %bb.6:
	movq	%rax, %rcx
	shlq	$3, %rcx
	movq	%rbx, %r12
	leaq	(%rcx,%rcx,2), %rbx
	orq	$4, %rbx
	subl	%eax, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	-4(%rax,%rbx), %esi
	movl	(%rax,%rbx), %edi
	callq	_free_irq
	addq	$24, %rbx
	decl	%r14d
	jne	LBB0_7
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_FLAG_MSIX_ENABLED,4,2      ## @ENA_FLAG_MSIX_ENABLED
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to request I/O IRQ: MSI-X is not enabled\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENA_IO_IRQ_FIRST_IDX,4,2       ## @ENA_IO_IRQ_FIRST_IDX
L_.str.1:                               ## @.str.1
	.asciz	"Failed to request I/O IRQ. index %d rc %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"set affinity hint of irq. index %d to 0x%lx (irq vector: %d)\n"

	.no_dead_strip	_ena_request_io_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_request_io_irq
_ena_request_io_irq:                    ; @ena_request_io_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ENA_FLAG_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENA_FLAG_MSIX_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_test_bit
	cbz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x23, _ENA_IO_IRQ_FIRST_IDX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ENA_IO_IRQ_FIRST_IDX@GOTPAGEOFF]
	ldrsw	x20, [x23]
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_5
; %bb.2:
	mov	w8, #24
	mul	x8, x20, x8
	add	x25, x8, #20
Lloh5:
	adrp	x24, _ifup@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ifup@GOTPAGEOFF]
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x26, x8, x25
	ldp	w3, w1, [x26, #-4]
	ldp	w4, w0, [x26, #-20]
	mov	x2, #0
	bl	_request_irq
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	ldr	w2, [x19, #16]
	mov	x21, x26
	ldr	x8, [x21, #-12]!
	ldr	w5, [x8]
	ldur	w6, [x26, #-16]
	mov	x0, x19
	mov	x3, x22
	mov	x4, x20
	bl	_netif_dbg
	ldur	w0, [x26, #-16]
	mov	x1, x21
	bl	_irq_set_affinity_hint
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	x25, x25, #24
	cmp	x20, x8
	b.lt	LBB0_3
LBB0_5:
	mov	w21, #0
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _ifup@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_8:
	mov	x21, x0
	ldr	w1, [x24]
	ldr	w2, [x19, #16]
	mov	x8, x20
	stp	x8, x21, [sp]
Lloh17:
	adrp	x3, l_.str.1@PAGE
Lloh18:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	ldrsw	x8, [x23]
	cmp	w8, w20
	b.ge	LBB0_7
; %bb.9:
	add	x9, x8, x8, lsl #1
	lsl	x22, x9, #3
	sub	w20, w20, w8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	ldp	w1, w0, [x8]
	bl	_free_irq
	add	x22, x22, #24
	subs	w20, w20, #1
	b.ne	LBB0_10
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_FLAG_MSIX_ENABLED,4,2      ; @ENA_FLAG_MSIX_ENABLED
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to request I/O IRQ: MSI-X is not enabled\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENA_IO_IRQ_FIRST_IDX,4,2       ; @ENA_IO_IRQ_FIRST_IDX
l_.str.1:                               ; @.str.1
	.asciz	"Failed to request I/O IRQ. index %d rc %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"set affinity hint of irq. index %d to 0x%lx (irq vector: %d)\n"

	.no_dead_strip	_ena_request_io_irq
.subsections_via_symbols
