	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_component_enable          ## -- Begin function mmal_component_enable
	.p2align	4, 0x90
_mmal_component_enable:                 ## @mmal_component_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_1
## %bb.2:
	movq	%rdi, %r15
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movq	32(%rdi), %rbx
	movl	44(%rdi), %esi
	movl	40(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	callq	_LOG_TRACE
	movq	%rbx, %rdi
	callq	_vcos_mutex_lock
	cmpl	$0, (%r15)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_vcos_mutex_unlock
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_20
LBB0_1:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_20
LBB0_4:
	movq	32(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	*%rax
	movq	%rax, %r14
LBB0_6:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	(%r13), %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.8:
	cmpl	$0, 4(%r15)
	je	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	movq	_MMAL_FALSE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r14), %esi
	callq	_mmal_port_pause
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movl	4(%r15), %ecx
	cmpq	%rcx, %rbx
	jb	LBB0_11
LBB0_13:
	cmpl	$0, 8(%r15)
	movq	%rax, %r14
	je	LBB0_18
## %bb.14:
	xorl	%ebx, %ebx
	movq	_MMAL_FALSE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r13), %esi
	callq	_mmal_port_pause
	movq	%rax, %r14
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movl	8(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_16
	jmp	LBB0_18
LBB0_7:
	movq	%rax, %rcx
LBB0_17:
	cmpq	%rcx, %r14
	jne	LBB0_19
LBB0_18:
	movl	$1, (%r15)
LBB0_19:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vcos_mutex_unlock
LBB0_20:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%rax, %r14
	cmpq	%rcx, %r14
	je	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_ENOSYS,8,3                ## @MMAL_ENOSYS
	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %d"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_FALSE,4,2                 ## @MMAL_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_component_enable          ; -- Begin function mmal_component_enable
	.p2align	2
_mmal_component_enable:                 ; @mmal_component_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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x21, _MMAL_ENOSYS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MMAL_ENOSYS@GOTPAGEOFF]
	ldr	x22, [x21]
	ldr	x19, [x0, #32]
	ldp	w2, w1, [x0, #40]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_TRACE
	mov	x0, x19
	bl	_vcos_mutex_lock
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_vcos_mutex_unlock
Lloh4:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh6:
	ldr	x21, [x8]
	b	LBB0_19
LBB0_3:
Lloh7:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	x21, [x8]
	b	LBB0_19
LBB0_4:
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	blr	x8
	mov	x22, x0
LBB0_6:
	ldr	x8, [x21]
Lloh10:
	adrp	x23, _MMAL_SUCCESS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x21, [x23]
	cmp	x22, x8
	b.ne	LBB0_15
; %bb.7:
	ldr	w8, [x20, #4]
Lloh12:
	adrp	x22, _MMAL_FALSE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _MMAL_FALSE@GOTPAGEOFF]
	cbz	w8, LBB0_11
; %bb.8:
	mov	x24, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x24, lsl #2]
	ldr	w1, [x22]
	bl	_mmal_port_pause
	mov	x21, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x24, #1
	ldr	w8, [x20, #4]
	cmp	x24, x8
	b.lo	LBB0_9
LBB0_11:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_17
; %bb.12:
	mov	x24, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x24, lsl #2]
	ldr	w1, [x22]
	bl	_mmal_port_pause
	mov	x21, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x24, #1
	ldr	w8, [x20, #8]
	cmp	x24, x8
	b.lo	LBB0_13
	b	LBB0_17
LBB0_15:
	mov	x8, x21
	mov	x21, x22
LBB0_16:
	cmp	x21, x8
	b.ne	LBB0_18
LBB0_17:
	mov	w8, #1
	str	w8, [x20]
LBB0_18:
	mov	x0, x19
	bl	_vcos_mutex_unlock
LBB0_19:
	mov	x0, x21
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_ENOSYS,8,3                ; @MMAL_ENOSYS
	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %d"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_FALSE,4,2                 ; @MMAL_FALSE
.subsections_via_symbols
