	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalomx_ComponentSetCallbacks
_mmalomx_ComponentSetCallbacks:         ## @mmalomx_ComponentSetCallbacks
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_MMAL_PARAM_UNUSED
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_LOG_TRACE
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rcx
	movq	_OMX_StateInvalid@GOTPCREL(%rip), %rdx
	movq	_OMX_ErrorInvalidState@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.5:
	movq	_OMX_StateLoaded@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	movl	(%r15), %eax
	movl	%eax, 12(%rbx)
	movl	%r14d, 8(%rbx)
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_OMX_ErrorInvalidComponent@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_OMX_ErrorBadParameter@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hComponent %p, pCallbacks %p, pAppData %p"

	.comm	_OMX_ErrorInvalidComponent,4,2  ## @OMX_ErrorInvalidComponent
	.comm	_OMX_ErrorBadParameter,4,2      ## @OMX_ErrorBadParameter
	.comm	_OMX_StateInvalid,8,3           ## @OMX_StateInvalid
	.comm	_OMX_ErrorInvalidState,4,2      ## @OMX_ErrorInvalidState
	.comm	_OMX_StateLoaded,8,3            ## @OMX_StateLoaded
	.comm	_OMX_ErrorNone,4,2              ## @OMX_ErrorNone
	.no_dead_strip	_mmalomx_ComponentSetCallbacks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalomx_ComponentSetCallbacks
_mmalomx_ComponentSetCallbacks:         ; @mmalomx_ComponentSetCallbacks
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_MMAL_PARAM_UNUSED
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_LOG_TRACE
	cbz	x20, LBB0_4
; %bb.1:
	cbz	x21, LBB0_5
; %bb.2:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _OMX_StateInvalid@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OMX_StateInvalid@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _OMX_StateLoaded@GOTPAGE
Lloh6:
	ldr	x10, [x10, _OMX_StateLoaded@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ne
	b.eq	LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _OMX_ErrorInvalidState@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OMX_ErrorInvalidState@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _OMX_ErrorInvalidComponent@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OMX_ErrorInvalidComponent@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _OMX_ErrorBadParameter@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OMX_ErrorBadParameter@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x21]
	stp	w19, w8, [x20, #8]
Lloh14:
	adrp	x8, _OMX_ErrorNone@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OMX_ErrorNone@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hComponent %p, pCallbacks %p, pAppData %p"

	.comm	_OMX_ErrorInvalidComponent,4,2  ; @OMX_ErrorInvalidComponent
	.comm	_OMX_ErrorBadParameter,4,2      ; @OMX_ErrorBadParameter
	.comm	_OMX_StateInvalid,8,3           ; @OMX_StateInvalid
	.comm	_OMX_ErrorInvalidState,4,2      ; @OMX_ErrorInvalidState
	.comm	_OMX_StateLoaded,8,3            ; @OMX_StateLoaded
	.comm	_OMX_ErrorNone,4,2              ; @OMX_ErrorNone
	.no_dead_strip	_mmalomx_ComponentSetCallbacks
.subsections_via_symbols
