	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_update_main
_sunxi_update_main:                     ## @sunxi_update_main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rsi), %edi
	callq	_slock_lock
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %esi
	movl	40(%rbx), %edi
	callq	_scond_wait
LBB0_2:
	movl	4(%rbx), %edi
	callq	_slock_unlock
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movq	24(%rbx), %rax
	movl	4(%rax), %edx
	movl	36(%rbx), %ecx
	movl	32(%rbx), %r9d
	movq	%r14, %r8
	callq	_pixman_blit
	movq	8(%rbx), %rdi
	movl	(%rdi), %r9d
	movl	4(%rdi), %esi
	movq	24(%rbx), %rax
	movl	(%rax), %edx
	movl	20(%rbx), %ecx
	movl	16(%rbx), %r8d
	callq	_sunxi_layer_set_rgb_input_buffer
	movl	4(%rbx), %edi
	callq	_slock_lock
	movl	$1, (%rbx)
	movl	4(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_slock_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sunxi_update_main
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_update_main
_sunxi_update_main:                     ; @sunxi_update_main
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #4]
	bl	_slock_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #40]
	ldr	w1, [x19, #4]
	bl	_scond_wait
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_slock_unlock
	ldp	w1, w0, [x19, #16]
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #4]
	ldp	w5, w3, [x19, #32]
	mov	x4, x20
	bl	_pixman_blit
	ldr	x0, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	ldp	w4, w3, [x19, #16]
	ldp	w5, w1, [x0]
	bl	_sunxi_layer_set_rgb_input_buffer
	ldr	w0, [x19, #4]
	bl	_slock_lock
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_slock_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sunxi_update_main
.subsections_via_symbols
