	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_init_l1_strtab
_arm_smmu_init_l1_strtab:               ## @arm_smmu_init_l1_strtab
	.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
	movq	%rdi, %r14
	movslq	8(%rdi), %rsi
	shlq	$2, %rsi
	movq	24(%rdi), %r12
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_devm_kzalloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$0, 8(%r14)
	je	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_arm_smmu_write_strtab_l1_desc
	cmpl	$2, 8(%r14)
	jb	LBB0_6
## %bb.3:
	movl	$1, %r13d
	movl	$4, %ebx
	movq	_STRTAB_L1_DESC_DWORDS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	shll	$3, %eax
	cltq
	addq	%rax, %r12
	movq	16(%r14), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_arm_smmu_write_strtab_l1_desc
	incq	%r13
	movl	8(%r14), %eax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jb	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate l1 stream table desc\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_STRTAB_L1_DESC_DWORDS,4,2      ## @STRTAB_L1_DESC_DWORDS
	.no_dead_strip	_arm_smmu_init_l1_strtab
.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_l1_strtab
_arm_smmu_init_l1_strtab:               ; @arm_smmu_init_l1_strtab
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldrsw	x8, [x0, #8]
	lsl	x1, x8, #2
	ldr	x20, [x0, #24]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_devm_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x1, x0
	mov	x0, x20
	bl	_arm_smmu_write_strtab_l1_desc
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.3:
	mov	w21, #1
	mov	w22, #4
Lloh3:
	adrp	x23, _STRTAB_L1_DESC_DWORDS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _STRTAB_L1_DESC_DWORDS@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	lsl	w8, w8, #3
	add	x20, x20, w8, sxtw
	ldr	x8, [x19, #16]
	add	x1, x8, x22
	mov	x0, x20
	bl	_arm_smmu_write_strtab_l1_desc
	add	x21, x21, #1
	ldr	w8, [x19, #8]
	add	x22, x22, #4
	cmp	x21, x8
	b.lo	LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate l1 stream table desc\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_STRTAB_L1_DESC_DWORDS,4,2      ; @STRTAB_L1_DESC_DWORDS
	.no_dead_strip	_arm_smmu_init_l1_strtab
.subsections_via_symbols
