	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_ir_hotplug                ## -- Begin function dmar_ir_hotplug
	.p2align	4, 0x90
_dmar_ir_hotplug:                       ## @dmar_ir_hotplug
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_irq_remapping_enabled@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.4:
	movl	%esi, %r12d
	movl	12(%r14), %edi
	callq	_ecap_ir_support
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:
	movq	_IRQ_POSTING_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_irq_remapping_cap
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	8(%r14), %edi
	callq	_cap_pi_support
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	(%r14), %rax
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.9:
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmar_ir_add                    ## TAILCALL
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movl	(%rax), %edi
	movq	_INTR_REMAP_TABLE_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bitmap_empty
	testl	%eax, %eax
	je	LBB0_7
## %bb.13:
	movq	%r14, %rdi
	callq	_iommu_disable_irq_remapping
	movq	%r14, %rdi
	callq	_intel_teardown_irq_remapping
	movq	%r14, %rdi
	callq	_ir_remove_ioapic_hpet_scope
	jmp	LBB0_14
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_irq_remapping_enabled,4,2      ## @irq_remapping_enabled
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_POSTING_CAP,4,2            ## @IRQ_POSTING_CAP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_INTR_REMAP_TABLE_ENTRIES,4,2   ## @INTR_REMAP_TABLE_ENTRIES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_ir_hotplug                ; -- Begin function dmar_ir_hotplug
	.p2align	2
_dmar_ir_hotplug:                       ; @dmar_ir_hotplug
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _irq_remapping_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _irq_remapping_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0]
	cbz	x19, LBB0_8
; %bb.2:
	mov	x21, x1
	ldr	w0, [x19, #12]
	bl	_ecap_ir_support
	cbz	w0, LBB0_15
; %bb.3:
Lloh3:
	adrp	x8, _IRQ_POSTING_CAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_POSTING_CAP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_irq_remapping_cap
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
	bl	_cap_pi_support
	cbz	w0, LBB0_13
LBB0_5:
	ldr	x8, [x19]
	cbz	w21, LBB0_9
; %bb.6:
	cbnz	x8, LBB0_12
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dmar_ir_add
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	cbz	x8, LBB0_12
; %bb.10:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _INTR_REMAP_TABLE_ENTRIES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INTR_REMAP_TABLE_ENTRIES@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_bitmap_empty
	cbz	w0, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_iommu_disable_irq_remapping
	mov	x0, x19
	bl	_intel_teardown_irq_remapping
	mov	x0, x19
	bl	_ir_remove_ioapic_hpet_scope
LBB0_12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_irq_remapping_enabled,4,2      ; @irq_remapping_enabled
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_POSTING_CAP,4,2            ; @IRQ_POSTING_CAP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_INTR_REMAP_TABLE_ENTRIES,4,2   ; @INTR_REMAP_TABLE_ENTRIES
.subsections_via_symbols
