	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdevice_get_dma_tag
_vdevice_get_dma_tag:                   ## @vdevice_get_dma_tag
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_device_get_parent
	cmpq	%r14, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_device_get_parent
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rdi
	callq	_device_get_ivars
	movq	%rax, %r15
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_bus_get_dma_tag
	movq	_BUS_SPACE_MAXADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_BUS_SPACE_MAXSIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_BUS_SPACE_UNRESTRICTED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	%r15, 56(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rsp)
	movl	%edx, 24(%rsp)
	movl	%esi, 16(%rsp)
	movl	%edx, 8(%rsp)
	movl	$0, 32(%rsp)
	movq	$0, (%rsp)
	movl	%eax, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	%ecx, %r8d
	xorl	%r9d, %r9d
	callq	_bus_dma_tag_create
	movq	(%r15), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_phyp_iommu_set_dma_tag
	movq	(%r15), %rax
LBB0_7:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_SPACE_MAXADDR,4,2          ## @BUS_SPACE_MAXADDR
	.comm	_BUS_SPACE_MAXSIZE,4,2          ## @BUS_SPACE_MAXSIZE
	.comm	_BUS_SPACE_UNRESTRICTED,4,2     ## @BUS_SPACE_UNRESTRICTED
	.no_dead_strip	_vdevice_get_dma_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdevice_get_dma_tag
_vdevice_get_dma_tag:                   ; @vdevice_get_dma_tag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_device_get_parent
	cmp	x0, x19
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_device_get_parent
	mov	x20, x0
	cbnz	x0, LBB0_1
LBB0_3:
	mov	x0, x20
	bl	_device_get_ivars
	mov	x21, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_bus_get_dma_tag
Lloh0:
	adrp	x8, _BUS_SPACE_MAXADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUS_SPACE_MAXADDR@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _BUS_SPACE_MAXSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUS_SPACE_MAXSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w7, [x8]
Lloh6:
	adrp	x8, _BUS_SPACE_UNRESTRICTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUS_SPACE_UNRESTRICTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	xzr, xzr, [sp, #16]
	str	x21, [sp, #32]
	stp	w7, wzr, [sp, #4]
	str	w8, [sp]
	mov	w1, #1
	mov	w2, #0
	mov	x4, x3
	mov	x5, #0
	mov	x6, #0
	bl	_bus_dma_tag_create
	ldr	x2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_phyp_iommu_set_dma_tag
	ldr	x0, [x21]
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_SPACE_MAXADDR,4,2          ; @BUS_SPACE_MAXADDR
	.comm	_BUS_SPACE_MAXSIZE,4,2          ; @BUS_SPACE_MAXSIZE
	.comm	_BUS_SPACE_UNRESTRICTED,4,2     ; @BUS_SPACE_UNRESTRICTED
	.no_dead_strip	_vdevice_get_dma_tag
.subsections_via_symbols
