	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_dq_callback
_sd_dq_callback:                        ## @sd_dq_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	decq	%rax
	movq	%rax, (%rbx)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_command_setcompression
LBB0_3:
	movq	%rbx, %rdi
	callq	_restart_flicker
	cmpl	$2, 8(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_monitor_exposure
LBB0_5:
	movq	_CPIA_COMMAND_GetExposure@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movq	_CPIA_COMMAND_ReadMCPorts@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_do_command                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CPIA_COMMAND_GetExposure,4,2   ## @CPIA_COMMAND_GetExposure
	.comm	_CPIA_COMMAND_ReadMCPorts,4,2   ## @CPIA_COMMAND_ReadMCPorts
	.no_dead_strip	_sd_dq_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_dq_callback
_sd_dq_callback:                        ; @sd_dq_callback
	.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, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_command_setcompression
LBB0_3:
	mov	x0, x19
	bl	_restart_flicker
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_monitor_exposure
LBB0_5:
Lloh0:
	adrp	x8, _CPIA_COMMAND_GetExposure@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPIA_COMMAND_GetExposure@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
Lloh3:
	adrp	x8, _CPIA_COMMAND_ReadMCPorts@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPIA_COMMAND_ReadMCPorts@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_do_command
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CPIA_COMMAND_GetExposure,4,2   ; @CPIA_COMMAND_GetExposure
	.comm	_CPIA_COMMAND_ReadMCPorts,4,2   ; @CPIA_COMMAND_ReadMCPorts
	.no_dead_strip	_sd_dq_callback
.subsections_via_symbols
