	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_ir_find
_dmar_ir_find:                          ## @dmar_ir_find
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r15d
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_2:
	movl	%r15d, %edi
	callq	_device_get_devclass
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	callq	_devclass_find
	cmpq	%rax, %r12
	jne	LBB0_5
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_devclass_find
	cmpq	%rax, %r12
	jne	LBB0_7
## %bb.6:
	movl	%r15d, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmar_find_hpet                 ## TAILCALL
LBB0_7:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_dmar_find
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_11
## %bb.8:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_dmar_get_requester
LBB0_11:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmar"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"hpet"

	.comm	_bootverbose,4,2                ## @bootverbose
	.no_dead_strip	_dmar_ir_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_ir_find
_dmar_ir_find:                          ; @dmar_ir_find
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	cbz	x2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_2:
	mov	x0, x20
	bl	_device_get_devclass
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_devclass_find
	cmp	x21, x0
	b.ne	LBB0_5
; %bb.3:
	mov	x21, #0
	cbz	x22, LBB0_10
; %bb.4:
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x22]
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_devclass_find
	cmp	x21, x0
	b.ne	LBB0_7
; %bb.6:
	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_find_hpet
LBB0_7:
Lloh10:
	adrp	x8, _bootverbose@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dmar_find
	mov	x21, x0
	cbz	x19, LBB0_10
; %bb.8:
	cbz	x21, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_dmar_get_requester
LBB0_10:
	mov	x0, x21
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmar"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"hpet"

	.comm	_bootverbose,4,2                ; @bootverbose
	.no_dead_strip	_dmar_ir_find
.subsections_via_symbols
