	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_component_action_register ## -- Begin function mmal_component_action_register
	.p2align	4, 0x90
_mmal_component_action_register:        ## @mmal_component_action_register
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r12
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %r13
	jmp	LBB0_8
LBB0_2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	8(%r12), %r14
	movl	(%rdi), %esi
	movq	%r14, %rdi
	callq	_vcos_event_create
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %r13
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	12(%r12), %r14
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_vcos_mutex_create
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	-60(%rbp), %r14
	movq	%r14, %rdi
	callq	_vcos_thread_attr_init
	movl	20(%r12), %esi
	movq	%r14, %rdi
	callq	_vcos_thread_attr_setpriority
	leaq	16(%r12), %rdi
	movl	(%rbx), %esi
	movq	_mmal_component_action_thread_func@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdx
	movq	%rbx, %r8
	callq	_vcos_thread_create
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	%r15, (%r12)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r13
	jmp	LBB0_8
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_vcos_mutex_delete
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vcos_event_delete
LBB0_8:
	movl	(%r13), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_MMAL_ENOMEM,4,2                ## @MMAL_ENOMEM
	.comm	_mmal_component_action_thread_func,4,2 ## @mmal_component_action_thread_func
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_component_action_register ; -- Begin function mmal_component_action_register
	.p2align	2
_mmal_component_action_register:        ; @mmal_component_action_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x23, [x0, #8]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x20, x1
	mov	x21, x0
	add	x19, x23, #8
	ldr	w1, [x0]
	mov	x0, x19
	bl	_vcos_event_create
Lloh2:
	adrp	x24, _VCOS_SUCCESS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VCOS_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
	add	x22, x23, #12
	ldr	w1, [x21]
	mov	x0, x22
	bl	_vcos_mutex_create
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.4:
	add	x0, sp, #12
	bl	_vcos_thread_attr_init
	ldr	w1, [x23, #20]
	add	x0, sp, #12
	bl	_vcos_thread_attr_setpriority
	add	x0, x23, #16
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _mmal_component_action_thread_func@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mmal_component_action_thread_func@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x4, x21
	bl	_vcos_thread_create
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	str	x20, [x23]
Lloh7:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	x0, x22
	bl	_vcos_mutex_delete
LBB0_7:
	mov	x0, x19
	bl	_vcos_event_delete
LBB0_8:
Lloh9:
	adrp	x8, _MMAL_ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMAL_ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_MMAL_ENOMEM,4,2                ; @MMAL_ENOMEM
	.comm	_mmal_component_action_thread_func,4,2 ; @mmal_component_action_thread_func
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
.subsections_via_symbols
