	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function control_bh_cb
_control_bh_cb:                         ## @control_bh_cb
	.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	%rsi, %rbx
	movq	%rdi, %rsi
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_LOG_DEBUG
	movq	(%rbx), %rsi
	movq	_MMAL_EVENT_PARAMETER_CHANGED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_6
## %bb.1:
	movq	16(%rbx), %r14
	xorl	%edi, %edi
	cmpl	$16, 8(%rbx)
	setae	%dil
	callq	_vcos_assert
	movslq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpq	%rax, (%r14)
	sete	%dil
	callq	_vcos_assert
	movslq	8(%r14), %rsi
	cmpq	$129, %rsi
	je	LBB0_4
## %bb.2:
	cmpl	$128, %esi
	jne	LBB0_5
## %bb.3:
	xorl	%edi, %edi
	cmpq	$4, (%r14)
	sete	%dil
	callq	_vcos_assert
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG_INFO
	movq	_MMAL_CAM_AUTOFOCUS_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VCOS_OR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_events@GOTPCREL(%rip), %rdi
	callq	_vcos_event_flags_set
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_7
LBB0_4:
	xorl	%edi, %edi
	cmpq	$4, (%r14)
	sete	%dil
	callq	_vcos_assert
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_LOG_INFO
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
LBB0_7:
	callq	_LOG_ERROR
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmal_buffer_header_release     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"control_bh_cb %p,%p (cmd=0x%08x)"

	.comm	_MMAL_EVENT_PARAMETER_CHANGED,8,3 ## @MMAL_EVENT_PARAMETER_CHANGED
L_.str.1:                               ## @.str.1
	.asciz	"Focus status: %d"

	.comm	_events,4,2                     ## @events
	.comm	_MMAL_CAM_AUTOFOCUS_COMPLETE,4,2 ## @MMAL_CAM_AUTOFOCUS_COMPLETE
	.comm	_VCOS_OR,4,2                    ## @VCOS_OR
L_.str.2:                               ## @.str.2
	.asciz	"Camera number: %d"

L_.str.3:                               ## @.str.3
	.asciz	"Unexpected changed event for parameter 0x%08x"

L_.str.4:                               ## @.str.4
	.asciz	"Unexpected event, 0x%08x"

	.no_dead_strip	_control_bh_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function control_bh_cb
_control_bh_cb:                         ; @control_bh_cb
	.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, x1
	mov	x1, x0
	ldr	x3, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_LOG_DEBUG
	ldr	x1, [x19]
Lloh2:
	adrp	x8, _MMAL_EVENT_PARAMETER_CHANGED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_EVENT_PARAMETER_CHANGED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	x20, [x19, #16]
	ldr	w8, [x19, #8]
	cmp	w8, #15
	cset	w0, hi
	bl	_vcos_assert
	ldrsw	x8, [x19, #8]
	ldr	x9, [x20]
	cmp	x9, x8
	cset	w0, eq
	bl	_vcos_assert
	ldr	w8, [x20, #8]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x20]
	cmp	x8, #4
	cset	w0, eq
	bl	_vcos_assert
	ldr	w1, [x20]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_INFO
Lloh7:
	adrp	x8, _MMAL_CAM_AUTOFOCUS_COMPLETE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_CAM_AUTOFOCUS_COMPLETE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _VCOS_OR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VCOS_OR@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x0, _events@GOTPAGE
Lloh14:
	ldr	x0, [x0, _events@GOTPAGEOFF]
	bl	_vcos_event_flags_set
	b	LBB0_8
LBB0_4:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	x8, [x20]
	cmp	x8, #4
	cset	w0, eq
	bl	_vcos_assert
	ldr	w1, [x20]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_INFO
	b	LBB0_8
LBB0_6:
	sxtw	x1, w8
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_7:
	bl	_LOG_ERROR
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmal_buffer_header_release
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"control_bh_cb %p,%p (cmd=0x%08x)"

	.comm	_MMAL_EVENT_PARAMETER_CHANGED,8,3 ; @MMAL_EVENT_PARAMETER_CHANGED
l_.str.1:                               ; @.str.1
	.asciz	"Focus status: %d"

	.comm	_events,4,2                     ; @events
	.comm	_MMAL_CAM_AUTOFOCUS_COMPLETE,4,2 ; @MMAL_CAM_AUTOFOCUS_COMPLETE
	.comm	_VCOS_OR,4,2                    ; @VCOS_OR
l_.str.2:                               ; @.str.2
	.asciz	"Camera number: %d"

l_.str.3:                               ; @.str.3
	.asciz	"Unexpected changed event for parameter 0x%08x"

l_.str.4:                               ; @.str.4
	.asciz	"Unexpected event, 0x%08x"

	.no_dead_strip	_control_bh_cb
.subsections_via_symbols
