	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_output_port
_setup_output_port:                     ## @setup_output_port
	.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	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%eax, %eax
	callq	_mmal_queue_create
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	movq	%rbx, %rdi
	callq	_mmal_port_pool_create
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%r12, 8(%rbx)
	movq	_generic_output_port_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mmal_port_enable
	movq	%rax, %r14
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_6
## %bb.4:
	movq	%r12, (%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	jmp	LBB0_7
LBB0_5:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_LOG_ERROR
	jmp	LBB0_7
LBB0_2:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG_ERROR
	movq	%r12, %rdi
	callq	_mmal_queue_destroy
	jmp	LBB0_7
LBB0_6:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_LOG_ERROR
	movq	%r12, %rdi
	callq	_mmal_queue_destroy
	movq	%r15, %rdi
	callq	_mmal_pool_destroy
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_ENOMEM,8,3                ## @MMAL_ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create queue for %s"

L_.str.1:                               ## @.str.1
	.asciz	"failed to create pool for %s"

	.comm	_generic_output_port_cb,4,2     ## @generic_output_port_cb
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"failed to enable %s"

	.no_dead_strip	_setup_output_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_output_port
_setup_output_port:                     ; @setup_output_port
	.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	x21, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MMAL_ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	bl	_mmal_queue_create
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldp	w2, w1, [x22, #16]
	mov	x0, x22
	bl	_mmal_port_pool_create
	cbz	x0, LBB0_5
; %bb.2:
	mov	x24, x0
	str	x20, [x22, #8]
Lloh3:
	adrp	x8, _generic_output_port_cb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _generic_output_port_cb@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_mmal_port_enable
	mov	x19, x0
Lloh6:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	str	x20, [x23]
	str	x24, [x21]
	b	LBB0_7
LBB0_4:
	ldr	w1, [x22]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
	b	LBB0_7
LBB0_5:
	ldr	w1, [x22]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
	mov	x0, x20
	bl	_mmal_queue_destroy
	b	LBB0_7
LBB0_6:
	ldr	w1, [x22]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_ERROR
	mov	x0, x20
	bl	_mmal_queue_destroy
	mov	x0, x24
	bl	_mmal_pool_destroy
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_ENOMEM,8,3                ; @MMAL_ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create queue for %s"

l_.str.1:                               ; @.str.1
	.asciz	"failed to create pool for %s"

	.comm	_generic_output_port_cb,4,2     ; @generic_output_port_cb
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"failed to enable %s"

	.no_dead_strip	_setup_output_port
.subsections_via_symbols
