	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_buffer_init
_pxa_buffer_init:                       ## @pxa_buffer_init
	.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, %r12
	movq	%rdi, %r14
	leaq	32(%rsi), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_sg_plane_desc
	movq	%rax, %r13
	movl	(%r14), %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_size
	cmpq	$3, %r15
	je	LBB0_4
## %bb.1:
	cmpl	$1, %r15d
	jne	LBB0_3
## %bb.2:
	movq	(%r12), %r8
	movq	%rax, (%r8)
	jmp	LBB0_5
LBB0_4:
	movq	%rax, %rcx
	shrq	%rcx
	movq	(%r12), %r8
	movq	%rcx, (%r8)
	shrq	$2, %rax
	movq	%rax, 8(%r8)
	movq	%rax, 16(%r8)
LBB0_5:
	movl	%r15d, 8(%r12)
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movq	24(%r12), %r9
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	movl	%r15d, %ecx
	pushq	%rax
	pushq	16(%r12)
	callq	_sg_split
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	(%rax,%rbx,4), %r8d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_pxa_init_dma_channel
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_9
## %bb.11:
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_7:
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_pcdev_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r13d, %edx
	callq	_dev_err
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_pxa_buffer_cleanup
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sg_split failed: %d\n"

	.no_dead_strip	_pxa_buffer_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa_buffer_init
_pxa_buffer_init:                       ; @pxa_buffer_init
	.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, x1
	mov	x20, x0
	add	x23, x1, #32
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_dma_sg_plane_desc
	mov	x22, x0
	ldr	w21, [x20]
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_plane_size
	cmp	w21, #3
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #1
	b.ne	LBB0_9
; %bb.2:
	ldr	x4, [x19]
	str	x0, [x4]
	b	LBB0_4
LBB0_3:
	lsr	x8, x0, #1
	ldr	x4, [x19]
	lsr	x9, x0, #2
	stp	x8, x9, [x4]
	str	x9, [x4, #16]
LBB0_4:
	str	w21, [x19, #8]
	ldp	w1, w0, [x22]
	ldp	x6, x5, [x19, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w7, [x8]
	mov	w2, #0
	mov	x3, x21
	bl	_sg_split
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	x23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x23, #2
	ldp	x10, x9, [x19, #16]
	ldr	w3, [x9, x8]
	ldr	w4, [x10, x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_pxa_init_dma_channel
	cbnz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	cmp	x21, x23
	b.ne	LBB0_6
; %bb.8:
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	mov	w22, #0
	b	LBB0_12
LBB0_9:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_10:
	mov	x22, x0
	mov	x0, x20
	bl	_pcdev_to_dev
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_12
LBB0_11:
	mov	x22, x0
	mov	x0, x19
	bl	_pxa_buffer_cleanup
LBB0_12:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sg_split failed: %d\n"

	.no_dead_strip	_pxa_buffer_init
.subsections_via_symbols
