	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_connection_disable        ## -- Begin function mmal_connection_disable
	.p2align	4, 0x90
_mmal_connection_disable:               ## @mmal_connection_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	44(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LOG_TRACE
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs
	movq	%rax, 8(%rbx)
	movq	_MMAL_CONNECTION_FLAG_TUNNELLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_5
## %bb.3:
	movl	36(%rbx), %edi
	callq	_mmal_port_disable
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG_ERROR
	jmp	LBB0_12
LBB0_1:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_13
LBB0_5:
	movl	40(%rbx), %edi
	callq	_mmal_port_disable
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rdi
	callq	_LOG_ERROR
	jmp	LBB0_12
LBB0_7:
	movl	36(%rbx), %edi
	callq	_mmal_port_disable
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rdi
	callq	_mmal_buffer_header_release
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%rbx), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:
	movq	24(%rbx), %rax
	movl	8(%rax), %edi
	callq	_mmal_queue_length
	movq	24(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_vcos_assert
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs
	subq	8(%rbx), %rax
	movq	%rax, 8(%rbx)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	(%rax), %r14
	setne	%cl
	movl	%ecx, (%rbx)
LBB0_13:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p, %s"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_CONNECTION_FLAG_TUNNELLING,4,2 ## @MMAL_CONNECTION_FLAG_TUNNELLING
L_.str.1:                               ## @.str.1
	.asciz	"output port couldn't be disabled"

L_.str.2:                               ## @.str.2
	.asciz	"input port couldn't be disabled"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_connection_disable        ; -- Begin function mmal_connection_disable
	.p2align	2
_mmal_connection_disable:               ; @mmal_connection_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w2, [x0, #44]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_LOG_TRACE
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.1:
	bl	_vcos_getmicrosecs
	str	x0, [x19, #8]
	ldr	w8, [x19, #16]
Lloh2:
	adrp	x9, _MMAL_CONNECTION_FLAG_TUNNELLING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMAL_CONNECTION_FLAG_TUNNELLING@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	w0, [x19, #36]
	bl	_mmal_port_disable
	mov	x20, x0
	cbz	x0, LBB0_8
LBB0_3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh7:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	x20, [x8]
	b	LBB0_9
LBB0_5:
	ldr	w0, [x19, #40]
	bl	_mmal_port_disable
	cbz	x0, LBB0_10
; %bb.6:
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_LOG_ERROR
LBB0_8:
	bl	_vcos_getmicrosecs
	ldr	x8, [x19, #8]
	sub	x8, x0, x8
	str	x8, [x19, #8]
Lloh12:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x20, x8
	cset	w8, ne
	str	w8, [x19]
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w0, [x19, #36]
	bl	_mmal_port_disable
	cbz	x0, LBB0_13
; %bb.11:
	mov	x20, x0
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_mmal_buffer_header_release
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	bl	_mmal_queue_get
	cbnz	x0, LBB0_12
; %bb.14:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	bl	_mmal_queue_length
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_vcos_assert
	mov	x20, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p, %s"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_CONNECTION_FLAG_TUNNELLING,4,2 ; @MMAL_CONNECTION_FLAG_TUNNELLING
l_.str.1:                               ; @.str.1
	.asciz	"output port couldn't be disabled"

l_.str.2:                               ; @.str.2
	.asciz	"input port couldn't be disabled"

.subsections_via_symbols
