	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_request_irq
_alx_request_irq:                       ## @alx_request_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, %r12
	movl	8(%rdi), %ebx
	sarl	%ebx
	movq	_ALX_MSI_RETRANS_TM_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	leaq	8(%rdi), %r15
	movq	16(%rdi), %r14
	cmpq	$0, 8(%r14)
	movq	%r14, %rax
	je	LBB0_4
## %bb.1:
	movq	_ALX_MSI_RETRANS_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_alx_write_mem32
	movq	%r12, %rdi
	callq	_alx_request_msix
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	%r12, %rdi
	callq	_alx_realloc_resources
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	16(%r12), %rax
LBB0_4:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_ALX_MSI_RETRANS_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ALX_MSI_MASK_SEL_LINE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_alx_write_mem32
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movq	_alx_intr_msi@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r12), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	16(%r12), %rdi
	callq	_pci_free_irq_vectors
LBB0_7:
	movq	_ALX_MSI_RETRANS_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_alx_write_mem32
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movq	_alx_intr_legacy@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	(%r12), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	movq	%r12, %r8
	callq	_request_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_10
LBB0_8:
	movq	%r12, %rdi
	callq	_alx_config_vector_mapping
	xorl	%r13d, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALX_MSI_RETRANS_TM_SHIFT,4,2   ## @ALX_MSI_RETRANS_TM_SHIFT
	.comm	_ALX_MSI_RETRANS_TIMER,4,2      ## @ALX_MSI_RETRANS_TIMER
	.comm	_ALX_MSI_MASK_SEL_LINE,4,2      ## @ALX_MSI_MASK_SEL_LINE
	.comm	_alx_intr_msi,4,2               ## @alx_intr_msi
	.comm	_alx_intr_legacy,4,2            ## @alx_intr_legacy
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ registration failed!\n"

	.no_dead_strip	_alx_request_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alx_request_irq
_alx_request_irq:                       ; @alx_request_irq
	.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
	mov	x21, x0
	ldr	w8, [x21, #8]!
	ldr	x20, [x21, #8]
	asr	w8, w8, #1
Lloh0:
	adrp	x9, _ALX_MSI_RETRANS_TM_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ALX_MSI_RETRANS_TM_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w22, w8, w9
	ldr	x9, [x20, #8]
Lloh3:
	adrp	x24, _ALX_MSI_RETRANS_TIMER@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ALX_MSI_RETRANS_TIMER@GOTPAGEOFF]
	mov	x8, x20
	cbz	x9, LBB0_4
; %bb.1:
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x22
	bl	_alx_write_mem32
	mov	x0, x19
	bl	_alx_request_msix
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_alx_realloc_resources
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x19, #16]
LBB0_4:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w1, [x24]
Lloh5:
	adrp	x8, _ALX_MSI_MASK_SEL_LINE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ALX_MSI_MASK_SEL_LINE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w2, w8, w22
	mov	x0, x21
	bl	_alx_write_mem32
	mov	x0, x20
	mov	w1, #0
	bl	_pci_irq_vector
Lloh8:
	adrp	x8, _alx_intr_msi@GOTPAGE
Lloh9:
	ldr	x8, [x8, _alx_intr_msi@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w3, [x8]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x0, [x19, #16]
	bl	_pci_free_irq_vectors
LBB0_7:
	ldr	w1, [x24]
	mov	x0, x21
	mov	w2, #0
	bl	_alx_write_mem32
	mov	x0, x20
	mov	w1, #0
	bl	_pci_irq_vector
Lloh11:
	adrp	x8, _alx_intr_legacy@GOTPAGE
Lloh12:
	ldr	x8, [x8, _alx_intr_legacy@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	x8, [x19]
	ldr	w3, [x8]
	mov	x4, x19
	bl	_request_irq
	mov	x23, x0
	cbz	w0, LBB0_9
LBB0_8:
	ldr	x0, [x19]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_alx_config_vector_mapping
	mov	w23, #0
LBB0_10:
	mov	x0, x23
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ALX_MSI_RETRANS_TM_SHIFT,4,2   ; @ALX_MSI_RETRANS_TM_SHIFT
	.comm	_ALX_MSI_RETRANS_TIMER,4,2      ; @ALX_MSI_RETRANS_TIMER
	.comm	_ALX_MSI_MASK_SEL_LINE,4,2      ; @ALX_MSI_MASK_SEL_LINE
	.comm	_alx_intr_msi,4,2               ; @alx_intr_msi
	.comm	_alx_intr_legacy,4,2            ; @alx_intr_legacy
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ registration failed!\n"

	.no_dead_strip	_alx_request_irq
.subsections_via_symbols
