	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_run
_device_run:                            ## @device_run
	.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
	movq	48(%rdi), %rbx
	movq	%rdi, 24(%rbx)
	movl	40(%rdi), %edi
	callq	_v4l2_m2m_next_src_buf
	movq	%rax, %r15
	movl	40(%r14), %edi
	callq	_v4l2_m2m_next_dst_buf
	movq	%rax, %r13
	movl	16(%rbx), %edi
	callq	_clk_enable
	movq	%rbx, %rdi
	callq	_g2d_reset
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	16(%r14), %rsi
	movq	%rbx, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_g2d_set_src_size
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_g2d_set_src_addr
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_g2d_set_dst_size
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_g2d_set_dst_addr
	movl	36(%r14), %esi
	movq	%rbx, %rdi
	callq	_g2d_set_rop4
	movl	32(%r14), %esi
	movq	%rbx, %rdi
	callq	_g2d_set_flip
	movq	16(%r14), %rax
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	movq	24(%r14), %rax
	cmpq	8(%r14), %rax
	je	LBB0_5
LBB0_2:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_TYPE_G2D_3X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_CMD_V3_ENABLE_STRETCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_g2d_set_v41_stretch
	xorl	%r12d, %r12d
LBB0_5:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_g2d_set_cmd
	movq	%rbx, %rdi
	callq	_g2d_start
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_G2D_3X,8,3                ## @TYPE_G2D_3X
	.comm	_CMD_V3_ENABLE_STRETCH,4,2      ## @CMD_V3_ENABLE_STRETCH
	.no_dead_strip	_device_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_run
_device_run:                            ; @device_run
	.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	x20, x0
	ldr	x19, [x0, #48]
	str	x0, [x19, #24]
	ldr	w0, [x0, #40]
	bl	_v4l2_m2m_next_src_buf
	mov	x22, x0
	ldr	w0, [x20, #40]
	bl	_v4l2_m2m_next_dst_buf
	mov	x23, x0
	ldr	w0, [x19, #16]
	bl	_clk_enable
	mov	x0, x19
	bl	_g2d_reset
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x21, x20, #16
	mov	x0, x19
	mov	x1, x21
	bl	_g2d_set_src_size
	mov	x0, x22
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	mov	x1, x0
	mov	x0, x19
	bl	_g2d_set_src_addr
	mov	x0, x19
	mov	x1, x20
	bl	_g2d_set_dst_size
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	mov	x1, x0
	mov	x0, x19
	bl	_g2d_set_dst_addr
	ldr	w1, [x20, #36]
	mov	x0, x19
	bl	_g2d_set_rop4
	ldr	w1, [x20, #32]
	mov	x0, x19
	bl	_g2d_set_flip
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_5
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _TYPE_G2D_3X@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TYPE_G2D_3X@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _CMD_V3_ENABLE_STRETCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_V3_ENABLE_STRETCH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_g2d_set_v41_stretch
LBB0_5:
	mov	w1, #0
LBB0_6:
	mov	x0, x19
	bl	_g2d_set_cmd
	mov	x0, x19
	bl	_g2d_start
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_G2D_3X,8,3                ; @TYPE_G2D_3X
	.comm	_CMD_V3_ENABLE_STRETCH,4,2      ; @CMD_V3_ENABLE_STRETCH
	.no_dead_strip	_device_run
.subsections_via_symbols
