	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_endpoint_test_request_irq
_pci_endpoint_test_request_irq:         ## @pci_endpoint_test_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
	movl	$1, %r15d
	cmpl	$0, (%rdi)
	jle	LBB0_12
## %bb.1:
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	xorl	%ebx, %ebx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %r15
	movq	_DRV_MODULE_NAME@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_irq_vector
	movq	_pci_endpoint_test_irqhandler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r15), %ecx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_2
## %bb.4:
	movl	$1, %r15d
	jmp	LBB0_12
LBB0_5:
	movq	_irq_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:
	xorl	%r15d, %r15d
	cmpl	$130, %eax
	jne	LBB0_12
## %bb.8:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_irq_vector
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_irq_vector
	incl	%ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_irq_vector
	incl	%ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_endpoint_test_irqhandler,4,2 ## @pci_endpoint_test_irqhandler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_DRV_MODULE_NAME,4,2            ## @DRV_MODULE_NAME
	.comm	_irq_type,4,2                   ## @irq_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to request IRQ %d for Legacy\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to request IRQ %d for MSI %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to request IRQ %d for MSI-X %d\n"

	.no_dead_strip	_pci_endpoint_test_request_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_endpoint_test_request_irq
_pci_endpoint_test_request_irq:         ; @pci_endpoint_test_request_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, x0
	mov	w20, #0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x22, _pci_endpoint_test_irqhandler@GOTPAGE
Lloh1:
	ldr	x22, [x22, _pci_endpoint_test_irqhandler@GOTPAGEOFF]
Lloh2:
	adrp	x23, _IRQF_SHARED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IRQF_SHARED@GOTPAGEOFF]
Lloh4:
	adrp	x24, _DRV_MODULE_NAME@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DRV_MODULE_NAME@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_pci_irq_vector
	mov	x1, x0
	ldr	w2, [x22]
	ldr	w3, [x23]
	ldr	w4, [x24]
	mov	x0, x19
	mov	x5, x21
	bl	_devm_request_irq
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #1
	b	LBB0_13
LBB0_5:
Lloh6:
	adrp	x8, _irq_type@GOTPAGE
Lloh7:
	ldr	x8, [x8, _irq_type@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.7:
	cmp	w8, #130
	b.ne	LBB0_12
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_irq_vector
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_irq_vector
	mov	x2, x0
	add	w8, w20, #1
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_irq_vector
	mov	x2, x0
	add	w8, w20, #1
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_endpoint_test_irqhandler,4,2 ; @pci_endpoint_test_irqhandler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_DRV_MODULE_NAME,4,2            ; @DRV_MODULE_NAME
	.comm	_irq_type,4,2                   ; @irq_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to request IRQ %d for Legacy\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to request IRQ %d for MSI %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to request IRQ %d for MSI-X %d\n"

	.no_dead_strip	_pci_endpoint_test_request_irq
.subsections_via_symbols
