	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function passthrough_port_send
_passthrough_port_send:                 ## @passthrough_port_send
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	16(%rax), %rcx
	movq	(%rcx), %r12
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	cmpl	$0, (%r12)
	je	LBB0_2
LBB0_1:
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_mmal_queue_put
LBB0_11:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	movq	(%rax,%rdx,8), %rdi
	movq	(%rcx,%rdx,8), %r13
	movq	_MMAL_PORT_TYPE_INPUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.3:
	movq	%r15, -56(%rbp)
	leaq	-48(%rbp), %r14
	movq	%r13, %rax
	jmp	LBB0_5
LBB0_4:
	movq	%r15, -48(%rbp)
	leaq	-56(%rbp), %r14
	movq	%rdi, %rax
LBB0_5:
	movq	24(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_mmal_queue_get
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r15
	movq	-56(%rbp), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mmal_buffer_header_replicate
	movq	%rax, %r13
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_8
## %bb.7:
	movq	$0, (%r14)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_mmal_port_buffer_header_callback
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_mmal_port_buffer_header_callback
	jmp	LBB0_11
LBB0_8:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_mmal_queue_put
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_mmal_queue_put
	movq	16(%rbx), %rdi
	movq	%r13, %rsi
	callq	_mmal_event_error_send
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movl	$1, (%r12)
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_LOG_ERROR
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ## @MMAL_PORT_TYPE_INPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to send an error event buffer (%i)"

	.no_dead_strip	_passthrough_port_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function passthrough_port_send
_passthrough_port_send:                 ; @passthrough_port_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #16]
	ldr	x26, [x9]
	stp	xzr, xzr, [sp]
	ldr	w9, [x26]
Lloh0:
	adrp	x25, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MMAL_SUCCESS@GOTPAGEOFF]
	cbz	w9, LBB0_3
LBB0_1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_mmal_queue_put
LBB0_2:
	ldr	x0, [x25]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	ldp	x9, x10, [x19]
	lsl	x9, x9, #3
	ldp	x8, x11, [x8]
	ldr	x22, [x11, x9]
	ldr	x21, [x8, x9]
Lloh2:
	adrp	x8, _MMAL_PORT_TYPE_INPUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_PORT_TYPE_INPUT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x10, x8
	b.ne	LBB0_5
; %bb.4:
	str	x20, [sp, #8]
	mov	x23, sp
	mov	x8, x21
	b	LBB0_6
LBB0_5:
	str	x20, [sp]
	add	x23, sp, #8
	mov	x8, x22
LBB0_6:
	ldr	x8, [x8, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	str	x0, [x23]
	cbz	x0, LBB0_1
; %bb.7:
	ldp	x20, x24, [sp]
	mov	x0, x20
	mov	x1, x24
	bl	_mmal_buffer_header_replicate
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
	str	xzr, [x24]
	mov	x0, x22
	mov	x1, x24
	bl	_mmal_port_buffer_header_callback
	mov	x0, x21
	mov	x1, x20
	bl	_mmal_port_buffer_header_callback
	b	LBB0_2
LBB0_9:
	mov	x23, x0
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x24
	bl	_mmal_queue_put
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_mmal_queue_put
	ldr	x0, [x19, #16]
	mov	x1, x23
	bl	_mmal_event_error_send
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x26]
	b	LBB0_2
LBB0_11:
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_LOG_ERROR
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ; @MMAL_PORT_TYPE_INPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to send an error event buffer (%i)"

	.no_dead_strip	_passthrough_port_send
.subsections_via_symbols
