	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_request_irq
_jme_request_irq:                       ## @jme_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, %rbx
	movq	(%rdi), %rdi
	movq	16(%rbx), %r15
	movq	_jme_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_pci_enable_msi
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_JME_FLAG_MSI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_set_bit
	movq	_jme_msi@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%r12d, %r12d
LBB0_2:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	4(%r15), %ecx
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	%r15, %r8
	callq	_request_irq
	movl	%eax, %r14d
	movq	(%rbx), %r12
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	_JME_FLAG_MSI@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	8(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %ecx
	callq	_jeprintk
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rbx), %rdi
	callq	_pci_disable_msi
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	jmp	LBB0_6
LBB0_5:
	movl	(%r12), %eax
	movl	%eax, (%r15)
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jme_intr,4,2                   ## @jme_intr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_JME_FLAG_MSI,4,2               ## @JME_FLAG_MSI
	.comm	_jme_msi,4,2                    ## @jme_msi
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to request %s interrupt (return: %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"MSI"

L_.str.2:                               ## @.str.2
	.asciz	"INTx"

	.no_dead_strip	_jme_request_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_request_irq
_jme_request_irq:                       ; @jme_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
Lloh0:
	adrp	x8, _jme_intr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jme_intr@GOTPAGEOFF]
	ldr	x20, [x0, #16]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	x0, [x0]
	bl	_pci_enable_msi
Lloh6:
	adrp	x23, _JME_FLAG_MSI@GOTPAGE
Lloh7:
	ldr	x23, [x23, _JME_FLAG_MSI@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x23]
	add	x1, x19, #8
	bl	_set_bit
	mov	w21, #0
Lloh8:
	adrp	x8, _jme_msi@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jme_msi@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
LBB0_2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w3, [x20, #4]
	mov	x1, x22
	mov	x2, x21
	mov	x4, x20
	bl	_request_irq
	mov	x21, x0
	ldr	x22, [x19]
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x23]
	add	x20, x19, #8
	mov	x1, x20
	bl	_test_bit
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x2, x9, x8, eq
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x3, x21
	bl	_jeprintk
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x0, [x19]
	bl	_pci_disable_msi
	ldr	w0, [x23]
	mov	x1, x20
	bl	_clear_bit
	b	LBB0_6
LBB0_5:
	ldr	w8, [x22]
	str	w8, [x20]
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_jme_intr,4,2                   ; @jme_intr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_JME_FLAG_MSI,4,2               ; @JME_FLAG_MSI
	.comm	_jme_msi,4,2                    ; @jme_msi
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to request %s interrupt (return: %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"MSI"

l_.str.2:                               ; @.str.2
	.asciz	"INTx"

	.no_dead_strip	_jme_request_irq
.subsections_via_symbols
