	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_pci_request_irq
_rtw_pci_request_irq:                   ## @rtw_pci_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_PCI_IRQ_LEGACY@GOTPCREL(%rip), %rax
	movq	_rtw_disable_msi@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	$0, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	_PCI_IRQ_MSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	orl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_pci_alloc_irq_vectors
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%r15), %edi
	movl	(%r14), %esi
	movq	_rtw_pci_interrupt_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_rtw_pci_interrupt_threadfn@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, (%rsp)
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_rtw_err
	movq	%r14, %rdi
	callq	_pci_free_irq_vectors
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_rtw_err
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_IRQ_LEGACY,4,2             ## @PCI_IRQ_LEGACY
	.comm	_rtw_disable_msi,4,2            ## @rtw_disable_msi
	.comm	_PCI_IRQ_MSI,4,2                ## @PCI_IRQ_MSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to alloc PCI irq vectors\n"

	.comm	_rtw_pci_interrupt_handler,4,2  ## @rtw_pci_interrupt_handler
	.comm	_rtw_pci_interrupt_threadfn,4,2 ## @rtw_pci_interrupt_threadfn
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
L_.str.1:                               ## @.str.1
	.asciz	"failed to request irq %d\n"

	.no_dead_strip	_rtw_pci_request_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_pci_request_irq
_rtw_pci_request_irq:                   ; @rtw_pci_request_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PCI_IRQ_LEGACY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_IRQ_LEGACY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _rtw_disable_msi@GOTPAGE
Lloh4:
	ldr	x9, [x9, _rtw_disable_msi@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _PCI_IRQ_MSI@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PCI_IRQ_MSI@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w9, w10, wzr, eq
	orr	w3, w9, w8
	mov	x0, x1
	mov	w1, #1
	mov	w2, #1
	bl	_pci_alloc_irq_vectors
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x20]
	ldr	w1, [x19]
Lloh9:
	adrp	x8, _rtw_pci_interrupt_handler@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rtw_pci_interrupt_handler@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _rtw_pci_interrupt_threadfn@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rtw_pci_interrupt_threadfn@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
	mov	x6, x20
	bl	_devm_request_threaded_irq
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_rtw_err
	mov	x0, x19
	bl	_pci_free_irq_vectors
	b	LBB0_4
LBB0_3:
	mov	x21, x0
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_rtw_err
LBB0_4:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_IRQ_LEGACY,4,2             ; @PCI_IRQ_LEGACY
	.comm	_rtw_disable_msi,4,2            ; @rtw_disable_msi
	.comm	_PCI_IRQ_MSI,4,2                ; @PCI_IRQ_MSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to alloc PCI irq vectors\n"

	.comm	_rtw_pci_interrupt_handler,4,2  ; @rtw_pci_interrupt_handler
	.comm	_rtw_pci_interrupt_threadfn,4,2 ; @rtw_pci_interrupt_threadfn
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
l_.str.1:                               ; @.str.1
	.asciz	"failed to request irq %d\n"

	.no_dead_strip	_rtw_pci_request_irq
.subsections_via_symbols
