	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_v7s_map
_arm_v7s_map:                           ## @arm_v7s_map
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_io_pgtable_ops_to_data
	movq	%rax, %r14
	movq	_IOMMU_READ@GOTPCREL(%rip), %rax
	movq	_IOMMU_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	movq	%r14, %r13
	addq	$8, %r13
	movb	(%r13), %cl
	movq	%r15, %rax
	shrq	%cl, %rax
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movb	16(%r14), %cl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	shrq	%cl, %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_4:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movl	(%r14), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r8d
	movl	$1, %r9d
	callq	___arm_v7s_map
	movl	%eax, %ebx
	movq	_IO_PGTABLE_QUIRK_TLBI_ON_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r14)
	je	LBB0_8
## %bb.7:
	movl	$2, %edi
	callq	_ARM_V7S_BLOCK_SIZE
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_io_pgtable_tlb_flush_walk
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	callq	_wmb
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOMMU_READ,4,2                 ## @IOMMU_READ
	.comm	_IOMMU_WRITE,4,2                ## @IOMMU_WRITE
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_IO_PGTABLE_QUIRK_TLBI_ON_MAP,4,2 ## @IO_PGTABLE_QUIRK_TLBI_ON_MAP
	.no_dead_strip	_arm_v7s_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_v7s_map
_arm_v7s_map:                           ; @arm_v7s_map
	.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	x22, x4
	mov	x19, x3
	mov	x24, x2
	mov	x20, x1
	bl	_io_pgtable_ops_to_data
Lloh0:
	adrp	x8, _IOMMU_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOMMU_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IOMMU_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IOMMU_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w22
	b.eq	LBB0_4
; %bb.1:
	mov	x23, x0
	add	x21, x0, #8
	ldr	x8, [x21]
	lsr	x8, x20, x8
	cbz	x8, LBB0_5
; %bb.2:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _ERANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_4:
	mov	w22, #0
	b	LBB0_9
LBB0_5:
	ldr	x8, [x23, #16]
	lsr	x8, x24, x8
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_3
LBB0_6:
	ldr	w6, [x23]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x24
	mov	x3, x19
	mov	x4, x22
	mov	w5, #1
	bl	___arm_v7s_map
	mov	x22, x0
	ldr	w8, [x23, #24]
Lloh9:
	adrp	x9, _IO_PGTABLE_QUIRK_TLBI_ON_MAP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IO_PGTABLE_QUIRK_TLBI_ON_MAP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	w0, #2
	bl	_ARM_V7S_BLOCK_SIZE
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_io_pgtable_tlb_flush_walk
	b	LBB0_9
LBB0_8:
	bl	_wmb
LBB0_9:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IOMMU_READ,4,2                 ; @IOMMU_READ
	.comm	_IOMMU_WRITE,4,2                ; @IOMMU_WRITE
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_IO_PGTABLE_QUIRK_TLBI_ON_MAP,4,2 ; @IO_PGTABLE_QUIRK_TLBI_ON_MAP
	.no_dead_strip	_arm_v7s_map
.subsections_via_symbols
