	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_init_strtab_linear
_arm_smmu_init_strtab_linear:           ## @arm_smmu_init_strtab_linear
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movb	(%rdi), %cl
	movq	_STRTAB_STE_DWORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$3, %ebx
	shll	%cl, %ebx
	movl	4(%rdi), %edi
	leaq	24(%r15), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ebx, %esi
	callq	_dmam_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, 16(%r15)
	movb	(%r15), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, 8(%r15)
	movq	_STRTAB_BASE_CFG_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STRTAB_BASE_CFG_FMT_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	movq	_STRTAB_BASE_CFG_LOG2SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_FIELD_PREP
	orl	%ebx, %eax
	movl	%eax, 12(%r15)
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_arm_smmu_init_bypass_stes
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRTAB_STE_DWORDS,4,2          ## @STRTAB_STE_DWORDS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate linear stream table (%u bytes)\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_STRTAB_BASE_CFG_FMT,4,2        ## @STRTAB_BASE_CFG_FMT
	.comm	_STRTAB_BASE_CFG_FMT_LINEAR,4,2 ## @STRTAB_BASE_CFG_FMT_LINEAR
	.comm	_STRTAB_BASE_CFG_LOG2SIZE,4,2   ## @STRTAB_BASE_CFG_LOG2SIZE
	.no_dead_strip	_arm_smmu_init_strtab_linear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_smmu_init_strtab_linear
_arm_smmu_init_strtab_linear:           ; @arm_smmu_init_strtab_linear
	.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	x8, _STRTAB_STE_DWORDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRTAB_STE_DWORDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #3
	ldp	w9, w0, [x0]
	lsl	w21, w8, w9
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
	add	x2, x19, #24
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x1, x21
	bl	_dmam_alloc_coherent
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #16]
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x19, #8]
Lloh9:
	adrp	x8, _STRTAB_BASE_CFG_FMT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STRTAB_BASE_CFG_FMT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _STRTAB_BASE_CFG_FMT_LINEAR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STRTAB_BASE_CFG_FMT_LINEAR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_FIELD_PREP
	mov	x21, x0
Lloh15:
	adrp	x8, _STRTAB_BASE_CFG_LOG2SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STRTAB_BASE_CFG_LOG2SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_FIELD_PREP
	orr	w8, w0, w21
	str	w8, [x19, #12]
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_arm_smmu_init_bypass_stes
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #4]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_STRTAB_STE_DWORDS,4,2          ; @STRTAB_STE_DWORDS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate linear stream table (%u bytes)\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_STRTAB_BASE_CFG_FMT,4,2        ; @STRTAB_BASE_CFG_FMT
	.comm	_STRTAB_BASE_CFG_FMT_LINEAR,4,2 ; @STRTAB_BASE_CFG_FMT_LINEAR
	.comm	_STRTAB_BASE_CFG_LOG2SIZE,4,2   ; @STRTAB_BASE_CFG_LOG2SIZE
	.no_dead_strip	_arm_smmu_init_strtab_linear
.subsections_via_symbols
