	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_port_connection_enable
_mmal_port_connection_enable:           ## @mmal_port_connection_enable
	.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, %r12
	movq	%rdi, %rbx
	movq	_MMAL_PORT_TYPE_OUTPUT@GOTPCREL(%rip), %rax
	movq	(%rdi), %rcx
	cmpq	(%rax), %rcx
	movq	%rsi, %r14
	cmoveq	%rdi, %r14
	movq	32(%rdi), %rdi
	movq	_MMAL_PORT_TYPE_INPUT@GOTPCREL(%rip), %rax
	movq	(%rsi), %rcx
	movq	32(%rsi), %rsi
	cmpq	(%rax), %rcx
	movq	%rbx, %r15
	cmoveq	%r12, %r15
	movq	_MMAL_PORT_CAPABILITY_ALLOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%r14), %eax
	cmovneq	%r14, %r15
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_MMAL_MAX
	movq	%rax, %r13
	movq	24(%rbx), %rdi
	movq	24(%r12), %rsi
	callq	_MMAL_MAX
	movq	%r13, 32(%r12)
	movq	%r13, 32(%rbx)
	movq	%rax, 24(%r12)
	movq	%rax, 24(%rbx)
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rbx
	cmpl	$0, 8(%rcx)
	je	LBB0_4
## %bb.1:
	movq	_MMAL_PORT_CAPABILITY_PASSTHROUGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	8(%r14), %ecx
	cmoveq	%rax, %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mmal_port_pool_create
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_mmal_port_connected_pool_cb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_mmal_pool_callback_set
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_LOG_ERROR
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rbx
LBB0_4:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_PORT_TYPE_OUTPUT,8,3      ## @MMAL_PORT_TYPE_OUTPUT
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ## @MMAL_PORT_TYPE_INPUT
	.comm	_MMAL_PORT_CAPABILITY_ALLOCATION,4,2 ## @MMAL_PORT_CAPABILITY_ALLOCATION
	.comm	_MMAL_PORT_CAPABILITY_PASSTHROUGH,4,2 ## @MMAL_PORT_CAPABILITY_PASSTHROUGH
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create pool for connection"

	.comm	_MMAL_ENOMEM,4,2                ## @MMAL_ENOMEM
	.comm	_mmal_port_connected_pool_cb,4,2 ## @mmal_port_connected_pool_cb
	.no_dead_strip	_mmal_port_connection_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_port_connection_enable
_mmal_port_connection_enable:           ; @mmal_port_connection_enable
	.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	x22, x1
	mov	x23, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MMAL_PORT_TYPE_OUTPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMAL_PORT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x19, x0, x1, eq
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _MMAL_PORT_TYPE_INPUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMAL_PORT_TYPE_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x1, x0, eq
	ldr	w9, [x19, #8]
Lloh6:
	adrp	x10, _MMAL_PORT_CAPABILITY_ALLOCATION@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMAL_PORT_CAPABILITY_ALLOCATION@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x20, x8, x19, eq
	ldr	x8, [x20, #16]
	ldr	x24, [x8]
	ldr	x0, [x0, #32]
	ldr	x1, [x1, #32]
	bl	_MMAL_MAX
	mov	x21, x0
	ldr	x0, [x23, #24]
	ldr	x1, [x22, #24]
	bl	_MMAL_MAX
	stp	x0, x21, [x22, #24]
	stp	x0, x21, [x23, #24]
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _MMAL_PORT_CAPABILITY_PASSTHROUGH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MMAL_PORT_CAPABILITY_PASSTHROUGH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x2, x0, xzr, eq
	mov	x0, x20
	mov	x1, x21
	bl	_mmal_port_pool_create
	cbz	x0, LBB0_4
; %bb.2:
	str	x0, [x24]
Lloh12:
	adrp	x8, _mmal_port_connected_pool_cb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mmal_port_connected_pool_cb@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_mmal_pool_callback_set
LBB0_3:
Lloh15:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
Lloh19:
	adrp	x8, _MMAL_ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MMAL_ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_PORT_TYPE_OUTPUT,8,3      ; @MMAL_PORT_TYPE_OUTPUT
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ; @MMAL_PORT_TYPE_INPUT
	.comm	_MMAL_PORT_CAPABILITY_ALLOCATION,4,2 ; @MMAL_PORT_CAPABILITY_ALLOCATION
	.comm	_MMAL_PORT_CAPABILITY_PASSTHROUGH,4,2 ; @MMAL_PORT_CAPABILITY_PASSTHROUGH
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create pool for connection"

	.comm	_MMAL_ENOMEM,4,2                ; @MMAL_ENOMEM
	.comm	_mmal_port_connected_pool_cb,4,2 ; @mmal_port_connected_pool_cb
	.no_dead_strip	_mmal_port_connection_enable
.subsections_via_symbols
