	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap24xxcam_vbq_queue
_omap24xxcam_vbq_queue:                 ## @omap24xxcam_vbq_queue
	.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, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movl	(%rsi), %r13d
	movq	_VIDEOBUF_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	leaq	16(%r14), %r15
	movq	%rsi, %rdi
	callq	_videobuf_to_dma
	movl	4(%rax), %r12d
	movq	%rbx, %rdi
	callq	_videobuf_to_dma
	movl	(%rax), %edx
	movl	4(%rbx), %ecx
	movq	_omap24xxcam_vbq_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rbx, %r9
	callq	_omap24xxcam_sgdma_queue
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	%r13d, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	(%r14), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	12(%r14), %rdi
	callq	_atomic_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_omap24xxcam_core_enable
LBB0_4:
	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	_VIDEOBUF_ACTIVE,4,2            ## @VIDEOBUF_ACTIVE
	.comm	_omap24xxcam_vbq_complete,4,2   ## @omap24xxcam_vbq_complete
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to queue a video buffer for dma!\n"

L_.str.1:                               ## @.str.1
	.asciz	"likely a bug in the driver!\n"

	.no_dead_strip	_omap24xxcam_vbq_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap24xxcam_vbq_queue
_omap24xxcam_vbq_queue:                 ; @omap24xxcam_vbq_queue
	.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, x1
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	w23, [x1]
Lloh0:
	adrp	x8, _VIDEOBUF_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEOBUF_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	add	x21, x19, #16
	mov	x0, x1
	bl	_videobuf_to_dma
	ldr	w22, [x0, #4]
	mov	x0, x20
	bl	_videobuf_to_dma
	ldr	w2, [x0]
	ldr	w3, [x20, #4]
Lloh3:
	adrp	x8, _omap24xxcam_vbq_complete@GOTPAGE
Lloh4:
	ldr	x8, [x8, _omap24xxcam_vbq_complete@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x5, x20
	bl	_omap24xxcam_sgdma_queue
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	str	w23, [x20]
	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
LBB0_2:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	cbnz	w8, LBB0_5
; %bb.3:
	add	x0, x19, #12
	bl	_atomic_read
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_omap24xxcam_core_enable
LBB0_5:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEOBUF_ACTIVE,4,2            ; @VIDEOBUF_ACTIVE
	.comm	_omap24xxcam_vbq_complete,4,2   ; @omap24xxcam_vbq_complete
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to queue a video buffer for dma!\n"

l_.str.1:                               ; @.str.1
	.asciz	"likely a bug in the driver!\n"

	.no_dead_strip	_omap24xxcam_vbq_queue
.subsections_via_symbols
