	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_enable               ## -- Begin function mmal_port_enable
	.p2align	4, 0x90
_mmal_port_enable:                      ## @mmal_port_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
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_9
## %bb.2:
	movq	%rsi, %r15
	movq	16(%rbx), %rsi
	movl	72(%rbx), %r8d
	movl	64(%rbx), %r9d
	movl	56(%rbx), %r10d
	movl	48(%rbx), %r11d
	movl	40(%rbx), %r14d
	movl	32(%rbx), %eax
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	pushq	%rax
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_LOG_TRACE
	addq	$32, %rsp
	movq	24(%rbx), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_5
## %bb.3:
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_LOCK_CONNECTION
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_UNLOCK_CONNECTION
	movq	16(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_9
LBB0_5:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	8(%r13), %r14
	testq	%r15, %r15
	je	LBB0_12
## %bb.7:
	testq	%r14, %r14
	je	LBB0_12
## %bb.8:
	movq	%rbx, %rdi
	callq	_UNLOCK_CONNECTION
	movq	16(%rbx), %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_9:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %r15
LBB0_11:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	testq	%r14, %r14
	je	LBB0_24
## %bb.13:
	movq	%r14, %rdi
	callq	_LOCK_CONNECTION
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mmal_port_connection_enable
	movq	%rax, %r15
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_37
## %bb.14:
	movq	(%r14), %rax
	movq	_MMAL_PORT_TYPE_INPUT@GOTPCREL(%rip), %rdi
	movq	_mmal_port_connected_output_cb@GOTPCREL(%rip), %rdx
	movq	_mmal_port_connected_input_cb@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rsi, %r12
	cmpq	(%rdi), %rax
	jne	LBB0_16
## %bb.15:
	movq	(%rdx), %r12
LBB0_16:
	jne	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_mmal_port_enable_internal
	movq	%rax, %r15
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_28
LBB0_18:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mmal_port_enable_internal
	movq	%rax, %r15
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_26
## %bb.19:
	movq	(%r14), %rax
	movq	_MMAL_PORT_TYPE_INPUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
## %bb.20:
	movq	_mmal_port_connected_output_cb@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_mmal_port_enable_internal
	cmpq	(%r12), %rax
	jne	LBB0_27
LBB0_21:
	cmpq	$0, (%r13)
	je	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mmal_port_connection_start
	cmpq	(%r12), %rax
	jne	LBB0_29
LBB0_23:
	movq	%r14, %rdi
	callq	_UNLOCK_CONNECTION
	jmp	LBB0_25
LBB0_24:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mmal_port_enable_internal
	movq	%rax, %r15
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_26
LBB0_25:
	movq	%rbx, %rdi
	callq	_UNLOCK_CONNECTION
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_26:
	movq	16(%rbx), %r12
	movq	%r15, %rdi
	callq	_mmal_status_to_string
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	testq	%r14, %r14
	jne	LBB0_31
	jmp	LBB0_33
LBB0_27:
	movq	%rax, %r15
LBB0_28:
	movq	16(%r14), %r12
	movq	%r15, %rdi
	callq	_mmal_status_to_string
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	jmp	LBB0_30
LBB0_29:
	movq	%rax, %r15
	movq	16(%rbx), %r12
	movq	%rax, %rdi
	callq	_mmal_status_to_string
	leaq	L_.str.5(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
LBB0_30:
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_31:
	cmpq	$0, 8(%r14)
	je	LBB0_33
## %bb.32:
	movq	%r14, %rdi
	callq	_mmal_port_disable_internal
LBB0_33:
	cmpq	$0, 8(%rbx)
	je	LBB0_35
## %bb.34:
	movq	%rbx, %rdi
	callq	_mmal_port_disable_internal
LBB0_35:
	testq	%r14, %r14
	je	LBB0_38
## %bb.36:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mmal_port_connection_disable
LBB0_37:
	movq	%r14, %rdi
	callq	_UNLOCK_CONNECTION
LBB0_38:
	movq	%rbx, %rdi
	callq	_UNLOCK_CONNECTION
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s port %p, cb %p, buffers (%i/%i/%i,%i/%i/%i)"

	.comm	_MMAL_ENOSYS,8,3                ## @MMAL_ENOSYS
L_.str.1:                               ## @.str.1
	.asciz	"%s(%p) already enabled"

L_.str.2:                               ## @.str.2
	.asciz	"callback (%p) not allowed for connected port (%s)%p"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ## @MMAL_PORT_TYPE_INPUT
	.comm	_mmal_port_connected_output_cb,8,3 ## @mmal_port_connected_output_cb
	.comm	_mmal_port_connected_input_cb,8,3 ## @mmal_port_connected_input_cb
L_.str.3:                               ## @.str.3
	.asciz	"failed to enable connected port (%s)%p (%s)"

L_.str.4:                               ## @.str.4
	.asciz	"failed to enable port %s(%p) (%s)"

L_.str.5:                               ## @.str.5
	.asciz	"failed to start connection (%s)%p (%s)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_enable               ; -- Begin function mmal_port_enable
	.p2align	2
_mmal_port_enable:                      ; @mmal_port_enable
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_10
; %bb.2:
	mov	x21, x1
	ldr	x1, [x19, #16]
	ldr	w4, [x19, #72]
	ldr	w5, [x19, #64]
	ldr	w6, [x19, #56]
	ldr	w7, [x19, #48]
	ldp	x9, x8, [x19, #32]
	stp	w8, w9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_LOG_TRACE
	ldr	x8, [x19, #24]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_5
; %bb.3:
	ldr	x23, [x8]
	mov	x0, x19
	bl	_LOCK_CONNECTION
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_UNLOCK_CONNECTION
	ldr	x1, [x19, #16]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	b	LBB0_9
LBB0_5:
Lloh4:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	ldr	x20, [x23, #8]
	cbz	x21, LBB0_13
; %bb.7:
	cbz	x20, LBB0_13
; %bb.8:
	mov	x0, x19
	bl	_UNLOCK_CONNECTION
	ldr	x2, [x19, #16]
	str	x20, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
LBB0_9:
	bl	_LOG_ERROR
LBB0_10:
Lloh8:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	x21, [x8]
LBB0_12:
	mov	x0, x21
	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_13:
	cbz	x20, LBB0_23
; %bb.14:
	mov	x0, x20
	bl	_LOCK_CONNECTION
	mov	x0, x19
	mov	x1, x20
	bl	_mmal_port_connection_enable
Lloh10:
	adrp	x24, _MMAL_SUCCESS@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_25
; %bb.15:
	ldr	x8, [x20]
Lloh12:
	adrp	x26, _MMAL_PORT_TYPE_INPUT@GOTPAGE
Lloh13:
	ldr	x26, [x26, _MMAL_PORT_TYPE_INPUT@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh14:
	adrp	x25, _mmal_port_connected_output_cb@GOTPAGE
Lloh15:
	ldr	x25, [x25, _mmal_port_connected_output_cb@GOTPAGEOFF]
	ldr	x10, [x25]
Lloh16:
	adrp	x11, _mmal_port_connected_input_cb@GOTPAGE
Lloh17:
	ldr	x11, [x11, _mmal_port_connected_input_cb@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x11]
	cmp	x8, x9
	csel	x22, x10, x1, eq
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_mmal_port_enable_internal
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_27
LBB0_17:
	mov	x0, x19
	mov	x1, x22
	bl	_mmal_port_enable_internal
	mov	x21, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_26
; %bb.18:
	ldr	x8, [x20]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.19:
	ldr	x1, [x25]
	mov	x0, x20
	bl	_mmal_port_enable_internal
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_27
LBB0_20:
	ldr	x8, [x23]
	cbz	x8, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	x1, x20
	bl	_mmal_port_connection_start
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_28
LBB0_22:
	mov	x0, x20
	bl	_UNLOCK_CONNECTION
	b	LBB0_24
LBB0_23:
	mov	x0, x19
	mov	x1, x21
	bl	_mmal_port_enable_internal
	mov	x21, x0
Lloh19:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_26
LBB0_24:
	mov	x0, x19
	bl	_UNLOCK_CONNECTION
Lloh22:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_25:
	mov	x21, x0
	b	LBB0_36
LBB0_26:
	ldr	x22, [x19, #16]
	mov	x0, x21
	bl	_mmal_status_to_string
	str	x0, [sp]
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	bl	_LOG_ERROR
	cbnz	x20, LBB0_30
	b	LBB0_32
LBB0_27:
	mov	x21, x0
	ldr	x22, [x20, #16]
	bl	_mmal_status_to_string
	str	x0, [sp]
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	b	LBB0_29
LBB0_28:
	mov	x21, x0
	ldr	x22, [x19, #16]
	bl	_mmal_status_to_string
	str	x0, [sp]
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x22
	mov	x2, x19
LBB0_29:
	bl	_LOG_ERROR
LBB0_30:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_32
; %bb.31:
	mov	x0, x20
	bl	_mmal_port_disable_internal
LBB0_32:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_34
; %bb.33:
	mov	x0, x19
	bl	_mmal_port_disable_internal
LBB0_34:
	cbz	x20, LBB0_37
; %bb.35:
	mov	x0, x19
	mov	x1, x20
	bl	_mmal_port_connection_disable
LBB0_36:
	mov	x0, x20
	bl	_UNLOCK_CONNECTION
LBB0_37:
	mov	x0, x19
	bl	_UNLOCK_CONNECTION
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s port %p, cb %p, buffers (%i/%i/%i,%i/%i/%i)"

	.comm	_MMAL_ENOSYS,8,3                ; @MMAL_ENOSYS
l_.str.1:                               ; @.str.1
	.asciz	"%s(%p) already enabled"

l_.str.2:                               ; @.str.2
	.asciz	"callback (%p) not allowed for connected port (%s)%p"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ; @MMAL_PORT_TYPE_INPUT
	.comm	_mmal_port_connected_output_cb,8,3 ; @mmal_port_connected_output_cb
	.comm	_mmal_port_connected_input_cb,8,3 ; @mmal_port_connected_input_cb
l_.str.3:                               ; @.str.3
	.asciz	"failed to enable connected port (%s)%p (%s)"

l_.str.4:                               ; @.str.4
	.asciz	"failed to enable port %s(%p) (%s)"

l_.str.5:                               ; @.str.5
	.asciz	"failed to start connection (%s)%p (%s)"

.subsections_via_symbols
