	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_vc_component_enable
_mmal_vc_component_enable:              ## @mmal_vc_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	$8, -24(%rbp)
	xorl	%edi, %edi
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
LBB0_3:
	callq	_vcos_assert
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	xorl	%eax, %eax
	callq	_mmal_vc_get_client
	movq	_MMAL_WORKER_COMPONENT_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MMAL_FALSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rsp)
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %r8
	leaq	-24(%rbp), %r9
	movl	%eax, %edi
	movl	$8, %edx
	callq	_mmal_vc_sendwait_message
	movq	%rax, %rbx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	%rax, %rbx
	jne	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	cmpq	$8, -24(%rbp)
	sete	%dil
	callq	_vcos_assert
	movq	-40(%rbp), %rbx
	movq	(%r14), %rax
LBB0_5:
	cmpq	%rax, %rbx
	je	LBB0_8
## %bb.6:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_mmal_status_to_string
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_LOG_ERROR
	movq	%rbx, %rax
LBB0_8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_WORKER_COMPONENT_ENABLE,4,2 ## @MMAL_WORKER_COMPONENT_ENABLE
	.comm	_MMAL_FALSE,4,2                 ## @MMAL_FALSE
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,8,3                ## @MMAL_ENOSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to enable component: %s"

	.no_dead_strip	_mmal_vc_component_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_vc_component_enable
_mmal_vc_component_enable:              ; @mmal_vc_component_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	mov	w8, #8
	str	x8, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	bl	_vcos_assert
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [sp, #20]
	bl	_mmal_vc_get_client
Lloh0:
	adrp	x8, _MMAL_WORKER_COMPONENT_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_WORKER_COMPONENT_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _MMAL_FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	add	x1, sp, #16
	add	x4, sp, #24
	add	x5, sp, #8
	mov	w2, #8
	bl	_mmal_vc_sendwait_message
	mov	x19, x0
Lloh6:
	adrp	x20, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x0, [x20]
	cmp	x19, x0
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [sp, #8]
	cmp	x8, #8
	cset	w0, eq
	bl	_vcos_assert
	ldr	x19, [sp, #24]
	ldr	x0, [x20]
LBB0_6:
Lloh8:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x19, x0
	ccmp	x19, x8, #4, ne
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_mmal_status_to_string
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
	mov	x0, x19
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_WORKER_COMPONENT_ENABLE,4,2 ; @MMAL_WORKER_COMPONENT_ENABLE
	.comm	_MMAL_FALSE,4,2                 ; @MMAL_FALSE
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,8,3                ; @MMAL_ENOSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to enable component: %s"

	.no_dead_strip	_mmal_vc_component_enable
.subsections_via_symbols
