	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_init_context_bank
_arm_smmu_init_context_bank:            ## @arm_smmu_init_context_bank
	.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	%rsi, %r14
	leaq	8(%rdi), %rax
	movq	(%rdi), %rcx
	movq	8(%rdi), %r15
	movq	(%rcx), %r12
	shlq	$5, %r15
	leaq	(%r12,%r15), %r13
	movq	16(%rdi), %rcx
	movq	_CBAR_TYPE_S2_TRANS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	%rax, 24(%r12,%r15)
	jne	LBB0_1
## %bb.8:
	movl	48(%r14), %eax
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	movl	52(%r14), %eax
	movq	8(%r12,%r15), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_12
LBB0_1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rcx
	movq	_ARM_SMMU_CTX_FMT_AARCH32_S@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_3
## %bb.2:
	movl	24(%r14), %eax
	movq	(%r13), %rdx
	movl	%eax, (%rdx)
	cmpq	(%rsi), %rcx
	je	LBB0_7
LBB0_9:
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movq	8(%r12,%r15), %rcx
	movl	%eax, (%rcx)
	movq	_TTBRn_ASID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rsi, %r13
	movl	32(%rbx), %esi
	callq	_FIELD_PREP
	movq	8(%r12,%r15), %rcx
	orl	%eax, (%rcx)
	movq	8(%r14), %rax
	movl	4(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_TTBRn_ASID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%rbx), %esi
	callq	_FIELD_PREP
	movq	8(%r12,%r15), %rcx
	orl	%eax, 4(%rcx)
	movq	24(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_10
## %bb.11:
	movq	16(%r14), %rax
	movl	(%rax), %ecx
	movq	16(%r12,%r15), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %eax
	movl	%eax, 4(%rdx)
	jmp	LBB0_12
LBB0_3:
	movl	(%r14), %eax
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	movq	_TCR2_SEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TCR2_SEP_UPSTREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FIELD_PREP
	movq	(%r13), %rdx
	orl	4(%rdx), %eax
	movl	%eax, 4(%rdx)
	movq	24(%rbx), %rcx
	movq	_ARM_SMMU_CTX_FMT_AARCH64@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_5
## %bb.4:
	movq	_TCR2_AS@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, 4(%rdx)
LBB0_5:
	movq	_ARM_SMMU_CTX_FMT_AARCH32_S@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_9
LBB0_7:
	movq	32(%r14), %rax
	movl	(%rax), %ecx
	movq	8(%r12,%r15), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %eax
	movl	%eax, 4(%rdx)
LBB0_10:
	movl	44(%r14), %eax
	movq	16(%r12,%r15), %rcx
	movl	%eax, (%rcx)
	movl	40(%r14), %eax
	movl	%eax, 4(%rcx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CBAR_TYPE_S2_TRANS,8,3         ## @CBAR_TYPE_S2_TRANS
	.comm	_ARM_SMMU_CTX_FMT_AARCH32_S,8,3 ## @ARM_SMMU_CTX_FMT_AARCH32_S
	.comm	_TCR2_SEP,4,2                   ## @TCR2_SEP
	.comm	_TCR2_SEP_UPSTREAM,4,2          ## @TCR2_SEP_UPSTREAM
	.comm	_ARM_SMMU_CTX_FMT_AARCH64,8,3   ## @ARM_SMMU_CTX_FMT_AARCH64
	.comm	_TCR2_AS,4,2                    ## @TCR2_AS
	.comm	_TTBRn_ASID,4,2                 ## @TTBRn_ASID
	.no_dead_strip	_arm_smmu_init_context_bank
.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_context_bank
_arm_smmu_init_context_bank:            ; @arm_smmu_init_context_bank
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x21, [x8]
	mov	x8, x0
	ldr	x22, [x8, #8]!
	add	x24, x21, x22, lsl #5
	ldr	x9, [x0, #16]
Lloh0:
	adrp	x10, _CBAR_TYPE_S2_TRANS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CBAR_TYPE_S2_TRANS@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	str	x8, [x24, #24]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #48]
	ldp	x9, x10, [x24]
	str	w8, [x9]
	ldr	w8, [x19, #52]
	str	w8, [x10]
	b	LBB0_11
LBB0_2:
	mov	x20, x0
	ldr	x8, [x0, #24]
Lloh3:
	adrp	x23, _ARM_SMMU_CTX_FMT_AARCH32_S@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ARM_SMMU_CTX_FMT_AARCH32_S@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x19, #24]
	ldr	x10, [x24]
	str	w9, [x10]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19]
	ldr	x9, [x24]
	str	w8, [x9]
Lloh5:
	adrp	x8, _TCR2_SEP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCR2_SEP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _TCR2_SEP_UPSTREAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TCR2_SEP_UPSTREAM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_FIELD_PREP
	ldr	x9, [x24]
	ldr	w8, [x9, #4]
	orr	w10, w8, w0
	str	w10, [x9, #4]
	ldr	x8, [x20, #24]
Lloh11:
	adrp	x11, _ARM_SMMU_CTX_FMT_AARCH64@GOTPAGE
Lloh12:
	ldr	x11, [x11, _ARM_SMMU_CTX_FMT_AARCH64@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x8, x11
	b.ne	LBB0_6
; %bb.5:
Lloh14:
	adrp	x11, _TCR2_AS@GOTPAGE
Lloh15:
	ldr	x11, [x11, _TCR2_AS@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	orr	w10, w11, w10
	str	w10, [x9, #4]
LBB0_6:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
	add	x10, x21, x22, lsl #5
	ldr	x10, [x10, #8]
	str	w9, [x10]
	ldr	w8, [x8, #4]
	str	w8, [x10, #4]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	add	x24, x21, x22, lsl #5
	ldr	x9, [x24, #8]
	str	w8, [x9]
Lloh17:
	adrp	x25, _TTBRn_ASID@GOTPAGE
Lloh18:
	ldr	x25, [x25, _TTBRn_ASID@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w1, [x20, #32]
	bl	_FIELD_PREP
	ldr	x8, [x24, #8]
	ldr	w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8]
	ldr	x9, [x19, #8]
	ldr	w9, [x9, #4]
	str	w9, [x8, #4]
	ldr	w0, [x25]
	ldr	w1, [x20, #32]
	bl	_FIELD_PREP
	ldr	x8, [x24, #8]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	ldr	x8, [x20, #24]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_9:
	ldr	w8, [x19, #44]
	add	x9, x21, x22, lsl #5
	ldr	x9, [x9, #16]
	str	w8, [x9]
	ldr	w8, [x19, #40]
	str	w8, [x9, #4]
	b	LBB0_11
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	ldr	x10, [x24, #16]
	str	w9, [x10]
	ldr	w8, [x8, #4]
	str	w8, [x10, #4]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CBAR_TYPE_S2_TRANS,8,3         ; @CBAR_TYPE_S2_TRANS
	.comm	_ARM_SMMU_CTX_FMT_AARCH32_S,8,3 ; @ARM_SMMU_CTX_FMT_AARCH32_S
	.comm	_TCR2_SEP,4,2                   ; @TCR2_SEP
	.comm	_TCR2_SEP_UPSTREAM,4,2          ; @TCR2_SEP_UPSTREAM
	.comm	_ARM_SMMU_CTX_FMT_AARCH64,8,3   ; @ARM_SMMU_CTX_FMT_AARCH64
	.comm	_TCR2_AS,4,2                    ; @TCR2_AS
	.comm	_TTBRn_ASID,4,2                 ; @TTBRn_ASID
	.no_dead_strip	_arm_smmu_init_context_bank
.subsections_via_symbols
