	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_need_swiotlb               ## -- Begin function drm_need_swiotlb
	.p2align	4, 0x90
_drm_need_swiotlb:                      ## @drm_need_swiotlb
	.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
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_xen_pv_domain
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_mem_encrypt_active
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	_iomem_resource@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_max
	movl	%eax, %r12d
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_5:
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	xorl	%r15d, %r15d
	cmpl	%eax, %r12d
	setg	%r15b
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iomem_resource,8,3             ## @iomem_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_need_swiotlb               ; -- Begin function drm_need_swiotlb
	.p2align	2
_drm_need_swiotlb:                      ; @drm_need_swiotlb
	.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
	mov	x19, x0
	bl	_xen_pv_domain
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_mem_encrypt_active
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh0:
	adrp	x8, _iomem_resource@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iomem_resource@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cbz	x20, LBB0_7
; %bb.5:
	mov	w0, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	bl	_max
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	mov	w8, #1
	lsl	w8, w8, w19
	cmp	w0, w8
	cset	w0, gt
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_iomem_resource,8,3             ; @iomem_resource
.subsections_via_symbols
