	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_queue_put                 ## -- Begin function mmal_queue_put
	.p2align	4, 0x90
_mmal_queue_put:                        ## @mmal_queue_put
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %ebx
	movl	%ebx, %edi
	callq	_vcos_assert
	cmpb	$1, %bl
	jne	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_vcos_mutex_lock
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mmal_queue_sanity_check
	incl	16(%r15)
	movq	8(%r15), %rax
	movq	%r14, (%rax)
	movq	$0, (%r14)
	movq	%r14, 8(%r15)
	leaq	4(%r15), %rdi
	callq	_vcos_semaphore_post
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vcos_mutex_unlock              ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_queue_put                 ; -- Begin function mmal_queue_put
	.p2align	2
_mmal_queue_put:                        ; @mmal_queue_put
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	cset	w21, ne
	mov	x0, x21
	bl	_vcos_assert
	cbz	w21, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_vcos_mutex_lock
	mov	x0, x19
	mov	x1, x20
	bl	_mmal_queue_sanity_check
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x8, [x19, #8]
	str	x20, [x8]
	str	xzr, [x20]
	str	x20, [x19, #8]
	add	x0, x19, #4
	bl	_vcos_semaphore_post
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vcos_mutex_unlock
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
