	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_ports
_connect_ports:                         ## @connect_ports
	.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	%rcx, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	56(%rsi), %edi
	movl	56(%r12), %esi
	callq	_mmal_format_full_copy
	movq	%rax, %rbx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_16
## %bb.1:
	movq	%r13, %rdi
	callq	_mmal_port_format_commit
	movq	%rax, %rbx
	cmpq	(%r14), %rax
	jne	LBB0_16
## %bb.2:
	xorl	%eax, %eax
	callq	_enable_tunneling
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mmal_port_connect
	movq	%rax, %rbx
	cmpq	(%r14), %rax
	jne	LBB0_16
## %bb.4:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mmal_port_enable
	movq	%rax, %rbx
	cmpq	(%r14), %rax
	je	LBB0_16
## %bb.5:
	movq	%r12, %rdi
	callq	_mmal_port_disconnect
	jmp	LBB0_16
LBB0_6:
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	cmpq	%rcx, %rax
	cmovgq	%rax, %rcx
	movq	%rcx, (%r13)
	movq	32(%r13), %rax
	movq	40(%r13), %rcx
	cmpq	%rcx, %rax
	cmovgq	%rax, %rcx
	movq	%rcx, 24(%r13)
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	cmpq	%rcx, %rax
	cmovgq	%rax, %rcx
	movq	%rcx, (%r12)
	movq	32(%r12), %rax
	movq	40(%r12), %rsi
	cmpq	%rsi, %rax
	cmovgq	%rax, %rsi
	movq	%rsi, 24(%r12)
	movq	24(%r13), %rdi
	callq	_MMAL_MAX
	movq	%rax, 24(%r12)
	movq	%rax, 24(%r13)
	movq	(%r13), %rdi
	movq	(%r12), %rsi
	callq	_MMAL_MAX
	movq	%rax, (%r12)
	movq	%rax, (%r13)
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_setup_output_port
	movq	%rax, %rbx
	cmpq	(%r14), %rax
	jne	LBB0_8
## %bb.7:
	movq	_generic_input_port_cb@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_mmal_port_enable
	movq	%rax, %rbx
	cmpq	(%r14), %rax
	je	LBB0_16
LBB0_8:
	cmpq	$0, 48(%r13)
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_mmal_port_disable
LBB0_10:
	cmpq	$0, 48(%r12)
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_mmal_port_disable
LBB0_12:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_mmal_pool_destroy
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_mmal_queue_destroy
LBB0_16:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_generic_input_port_cb,8,3      ## @generic_input_port_cb
	.no_dead_strip	_connect_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_ports
_connect_ports:                         ; @connect_ports
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x1, #56]
	ldr	w1, [x19, #56]
	bl	_mmal_format_full_copy
	mov	x23, x0
Lloh0:
	adrp	x24, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.1:
	mov	x0, x22
	bl	_mmal_port_format_commit
	mov	x23, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.2:
	bl	_enable_tunneling
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	bl	_mmal_port_connect
	mov	x23, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.4:
	mov	x0, x19
	mov	x1, #0
	bl	_mmal_port_enable
	mov	x23, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.5:
	mov	x0, x19
	bl	_mmal_port_disconnect
	b	LBB0_16
LBB0_6:
	ldp	x8, x9, [x22, #8]
	cmp	x8, x9
	csel	x8, x8, x9, gt
	str	x8, [x22]
	ldp	x8, x9, [x22, #32]
	cmp	x8, x9
	csel	x8, x8, x9, gt
	str	x8, [x22, #24]
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	csel	x8, x8, x9, gt
	str	x8, [x19]
	ldp	x8, x9, [x19, #32]
	cmp	x8, x9
	csel	x1, x8, x9, gt
	str	x1, [x19, #24]
	ldr	x0, [x22, #24]
	bl	_MMAL_MAX
	str	x0, [x19, #24]
	str	x0, [x22, #24]
	ldr	x0, [x22]
	ldr	x1, [x19]
	bl	_MMAL_MAX
	str	x0, [x19]
	str	x0, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_setup_output_port
	mov	x23, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _generic_input_port_cb@GOTPAGE
Lloh3:
	ldr	x8, [x8, _generic_input_port_cb@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	mov	x0, x22
	bl	_mmal_port_enable
	mov	x23, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_16
LBB0_8:
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x22
	bl	_mmal_port_disable
LBB0_10:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_mmal_port_disable
LBB0_12:
	ldr	x0, [x21]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_mmal_pool_destroy
LBB0_14:
	ldr	x0, [x20]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_mmal_queue_destroy
LBB0_16:
	mov	x0, x23
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_generic_input_port_cb,8,3      ; @generic_input_port_cb
	.no_dead_strip	_connect_ports
.subsections_via_symbols
