	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_hotplug_remove
_dmar_hotplug_remove:                   ## @dmar_hotplug_remove
	.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	%edi, %r14d
	movq	_DMAR_DSM_FUNC_ATSR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_dmar_check_one_atsr@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_dmar_walk_dsm_resource
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_DMAR_DSM_FUNC_DRHD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_dmar_hp_remove_drhd@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	callq	_dmar_walk_dsm_resource
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	_dmar_hp_add_drhd@GOTPCREL(%rip), %rdx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	callq	_dmar_walk_dsm_resource
	movl	%r15d, %ebx
	jmp	LBB0_4
LBB0_2:
	movl	(%r12), %esi
	movq	_dmar_release_one_atsr@GOTPCREL(%rip), %rdx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	callq	_dmar_walk_dsm_resource
	movl	%eax, %edi
	callq	_WARN_ON
	movl	(%r13), %esi
	movq	_dmar_hp_release_drhd@GOTPCREL(%rip), %rdx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	callq	_dmar_walk_dsm_resource
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_DSM_FUNC_ATSR,4,2         ## @DMAR_DSM_FUNC_ATSR
	.comm	_dmar_check_one_atsr,4,2        ## @dmar_check_one_atsr
	.comm	_DMAR_DSM_FUNC_DRHD,4,2         ## @DMAR_DSM_FUNC_DRHD
	.comm	_dmar_hp_remove_drhd,4,2        ## @dmar_hp_remove_drhd
	.comm	_dmar_release_one_atsr,4,2      ## @dmar_release_one_atsr
	.comm	_dmar_hp_release_drhd,4,2       ## @dmar_hp_release_drhd
	.comm	_dmar_hp_add_drhd,4,2           ## @dmar_hp_add_drhd
	.no_dead_strip	_dmar_hotplug_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_hotplug_remove
_dmar_hotplug_remove:                   ; @dmar_hotplug_remove
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _DMAR_DSM_FUNC_ATSR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMAR_DSM_FUNC_ATSR@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, _dmar_check_one_atsr@GOTPAGE
Lloh3:
	ldr	x2, [x2, _dmar_check_one_atsr@GOTPAGEOFF]
	mov	x3, #0
	bl	_dmar_walk_dsm_resource
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh4:
	adrp	x21, _DMAR_DSM_FUNC_DRHD@GOTPAGE
Lloh5:
	ldr	x21, [x21, _DMAR_DSM_FUNC_DRHD@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh6:
	adrp	x2, _dmar_hp_remove_drhd@GOTPAGE
Lloh7:
	ldr	x2, [x2, _dmar_hp_remove_drhd@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, #0
	bl	_dmar_walk_dsm_resource
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w1, [x21]
Lloh8:
	adrp	x2, _dmar_hp_add_drhd@GOTPAGE
Lloh9:
	ldr	x2, [x2, _dmar_hp_add_drhd@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, #0
	bl	_dmar_walk_dsm_resource
	b	LBB0_4
LBB0_3:
	ldr	w1, [x22]
Lloh10:
	adrp	x2, _dmar_release_one_atsr@GOTPAGE
Lloh11:
	ldr	x2, [x2, _dmar_release_one_atsr@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, #0
	bl	_dmar_walk_dsm_resource
	bl	_WARN_ON
	ldr	w1, [x21]
Lloh12:
	adrp	x2, _dmar_hp_release_drhd@GOTPAGE
Lloh13:
	ldr	x2, [x2, _dmar_hp_release_drhd@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, #0
	bl	_dmar_walk_dsm_resource
	bl	_WARN_ON
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_DSM_FUNC_ATSR,4,2         ; @DMAR_DSM_FUNC_ATSR
	.comm	_dmar_check_one_atsr,4,2        ; @dmar_check_one_atsr
	.comm	_DMAR_DSM_FUNC_DRHD,4,2         ; @DMAR_DSM_FUNC_DRHD
	.comm	_dmar_hp_remove_drhd,4,2        ; @dmar_hp_remove_drhd
	.comm	_dmar_release_one_atsr,4,2      ; @dmar_release_one_atsr
	.comm	_dmar_hp_release_drhd,4,2       ; @dmar_hp_release_drhd
	.comm	_dmar_hp_add_drhd,4,2           ; @dmar_hp_add_drhd
	.no_dead_strip	_dmar_hotplug_remove
.subsections_via_symbols
