	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_pgtable_build_single   ## -- Begin function saa7146_pgtable_build_single
	.p2align	4, 0x90
_saa7146_pgtable_build_single:          ## @saa7146_pgtable_build_single
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r15
	xorl	%edi, %edi
	testl	%ecx, %ecx
	sete	%dil
	callq	_BUG_ON
	movq	(%r12), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_BUG_ON
	movq	(%r12), %rax
	movq	%rax, (%r15)
	movq	8(%r15), %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	addq	$16, %r12
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$0, 8(%r12)
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_sg_dma_address
	movl	%r14d, %edi
	addq	%rax, %rdi
	callq	_cpu_to_le32
	movl	%eax, (%rbx)
	incl	%r15d
	addq	$4, %rbx
	addl	$4096, %r14d                    ## imm = 0x1000
	cmpl	8(%r12), %r14d
	jl	LBB0_5
	jmp	LBB0_6
LBB0_7:
	cmpl	$1023, %r15d                    ## imm = 0x3FF
	jle	LBB0_8
	jmp	LBB0_20
LBB0_1:
	xorl	%r15d, %r15d
LBB0_8:
	movl	-4(%rbx), %eax
	movl	$1023, %ecx                     ## imm = 0x3FF
	subl	%r15d, %ecx
	cmpl	$7, %ecx
	jb	LBB0_18
## %bb.9:
	incq	%rcx
	movq	%rcx, %r8
	andq	$-8, %r8
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rdx
	movq	%rdx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %esi
	andl	$7, %esi
	cmpq	$56, %rdx
	jae	LBB0_11
## %bb.10:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_11:
	andq	$-8, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rbx,%rdx,4)
	movdqu	%xmm0, 16(%rbx,%rdx,4)
	movdqu	%xmm0, 32(%rbx,%rdx,4)
	movdqu	%xmm0, 48(%rbx,%rdx,4)
	movdqu	%xmm0, 64(%rbx,%rdx,4)
	movdqu	%xmm0, 80(%rbx,%rdx,4)
	movdqu	%xmm0, 96(%rbx,%rdx,4)
	movdqu	%xmm0, 112(%rbx,%rdx,4)
	movdqu	%xmm0, 128(%rbx,%rdx,4)
	movdqu	%xmm0, 144(%rbx,%rdx,4)
	movdqu	%xmm0, 160(%rbx,%rdx,4)
	movdqu	%xmm0, 176(%rbx,%rdx,4)
	movdqu	%xmm0, 192(%rbx,%rdx,4)
	movdqu	%xmm0, 208(%rbx,%rdx,4)
	movdqu	%xmm0, 224(%rbx,%rdx,4)
	movdqu	%xmm0, 240(%rbx,%rdx,4)
	addq	$64, %rdx
	addq	$-8, %rdi
	jne	LBB0_12
LBB0_13:
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.14:
	leaq	(%rbx,%rdx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rdx,%rdi)
	movdqu	%xmm0, (%rdx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_15
LBB0_16:
	cmpq	%r8, %rcx
	je	LBB0_20
## %bb.17:
	addl	%r8d, %r15d
	leaq	(%rbx,%r8,4), %rbx
LBB0_18:
	movl	$1024, %ecx                     ## imm = 0x400
	subl	%r15d, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rbx,%rdx,4)
	incq	%rdx
	cmpl	%edx, %ecx
	jne	LBB0_19
LBB0_20:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_pgtable_build_single   ; -- Begin function saa7146_pgtable_build_single
	.p2align	2
_saa7146_pgtable_build_single:          ; @saa7146_pgtable_build_single
	.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, x3
	mov	x20, x2
	mov	x21, x1
	cmp	w3, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, gt
	bl	_BUG_ON
	ldr	x8, [x20]
	str	x8, [x21]
	ldr	x22, [x21, #8]
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w23, #0
	mov	w21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	add	x20, x20, #16
	cmp	w23, w19
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w24, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_sg_dma_address
	add	x0, x0, w24, uxtw
	bl	_cpu_to_le32
	str	w0, [x22], #4
	add	w21, w21, #1
	ldr	w8, [x20, #8]
	add	w24, w24, #1, lsl #12           ; =4096
	cmp	w24, w8
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	cmp	w21, #1023
	b.le	LBB0_8
	b	LBB0_15
LBB0_7:
	mov	w21, #0
LBB0_8:
	ldur	w8, [x22, #-4]
	mov	w9, #1023
	sub	w9, w9, w21
	cmp	w9, #15
	b.hs	LBB0_10
; %bb.9:
	mov	x9, x22
	b	LBB0_13
LBB0_10:
	add	x10, x9, #1
	and	x11, x10, #0x1fffffff0
	add	w21, w21, w11
	add	x9, x22, x11, lsl #2
	dup.4s	v0, w8
	add	x12, x22, #32
	mov	x13, x11
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_11
; %bb.12:
	cmp	x10, x11
	b.eq	LBB0_15
LBB0_13:
	sub	w10, w21, #1024
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [x9], #4
	adds	w10, w10, #1
	b.lo	LBB0_14
LBB0_15:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
.subsections_via_symbols
