	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_set_interrupt             ## -- Begin function dmar_set_interrupt
	.p2align	4, 0x90
_dmar_set_interrupt:                    ## @dmar_set_interrupt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r14d, %r14d
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movl	8(%rdi), %esi
	movl	12(%rdi), %edi
	movq	%rbx, %rdx
	callq	_dmar_alloc_hwirq
	testl	%eax, %eax
	jle	LBB0_5
## %bb.2:
	movl	%eax, (%rbx)
	movq	_dmar_fault@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IRQF_NO_THREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	4(%rbx), %ecx
	movl	%eax, %edi
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movl	%ebx, %r14d
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No free IRQ vectors\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dmar_fault,4,2                 ## @dmar_fault
	.comm	_IRQF_NO_THREAD,4,2             ## @IRQF_NO_THREAD
L_.str.1:                               ## @.str.1
	.asciz	"Can't request irq\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_set_interrupt             ; -- Begin function dmar_set_interrupt
	.p2align	2
_dmar_set_interrupt:                    ; @dmar_set_interrupt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x19, #8]
	mov	x2, x19
	bl	_dmar_alloc_hwirq
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _dmar_fault@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dmar_fault@GOTPAGEOFF]
	str	w0, [x19]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_NO_THREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_NO_THREAD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w3, [x19, #4]
	mov	x4, x19
	bl	_request_irq
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_2
LBB0_6:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No free IRQ vectors\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dmar_fault,4,2                 ; @dmar_fault
	.comm	_IRQF_NO_THREAD,4,2             ; @IRQF_NO_THREAD
l_.str.1:                               ; @.str.1
	.asciz	"Can't request irq\n"

.subsections_via_symbols
