	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mchip_take_picture
_mchip_take_picture:                    ## @mchip_take_picture
	.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
	xorl	%eax, %eax
	callq	_mchip_hic_stop
	xorl	%eax, %eax
	callq	_mchip_subsample
	movq	_meye@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mchip_dma_setup
	movq	_MCHIP_HIC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MCHIP_HIC_MODE_STILL_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mchip_set
	movq	_MCHIP_HIC_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_MCHIP_HIC_CMD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mchip_set
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_mchip_delay
	movl	$100, %ebx
	movq	_MCHIP_HIC_STATUS@GOTPCREL(%rip), %r14
	movq	_MCHIP_HIC_STATUS_IDLE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_mchip_delay
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_meye,4,2                       ## @meye
	.comm	_MCHIP_HIC_MODE,4,2             ## @MCHIP_HIC_MODE
	.comm	_MCHIP_HIC_MODE_STILL_CAP,4,2   ## @MCHIP_HIC_MODE_STILL_CAP
	.comm	_MCHIP_HIC_CMD,4,2              ## @MCHIP_HIC_CMD
	.comm	_MCHIP_HIC_CMD_START,4,2        ## @MCHIP_HIC_CMD_START
	.comm	_MCHIP_HIC_STATUS,4,2           ## @MCHIP_HIC_STATUS
	.comm	_MCHIP_HIC_STATUS_IDLE,4,2      ## @MCHIP_HIC_STATUS_IDLE
	.no_dead_strip	_mchip_take_picture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mchip_take_picture
_mchip_take_picture:                    ; @mchip_take_picture
	.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
	bl	_mchip_hic_stop
	bl	_mchip_subsample
Lloh0:
	adrp	x8, _meye@GOTPAGE
Lloh1:
	ldr	x8, [x8, _meye@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_mchip_dma_setup
Lloh3:
	adrp	x8, _MCHIP_HIC_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCHIP_HIC_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _MCHIP_HIC_MODE_STILL_CAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCHIP_HIC_MODE_STILL_CAP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_mchip_set
Lloh9:
	adrp	x19, _MCHIP_HIC_CMD@GOTPAGE
Lloh10:
	ldr	x19, [x19, _MCHIP_HIC_CMD@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _MCHIP_HIC_CMD_START@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MCHIP_HIC_CMD_START@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_mchip_set
	ldr	w0, [x19]
	mov	w1, #0
	bl	_mchip_delay
	mov	w19, #100
Lloh14:
	adrp	x20, _MCHIP_HIC_STATUS@GOTPAGE
Lloh15:
	ldr	x20, [x20, _MCHIP_HIC_STATUS@GOTPAGEOFF]
Lloh16:
	adrp	x21, _MCHIP_HIC_STATUS_IDLE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _MCHIP_HIC_STATUS_IDLE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_mchip_delay
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_msleep
	subs	w19, w19, #1
	b.ne	LBB0_1
LBB0_3:
	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 AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_meye,4,2                       ; @meye
	.comm	_MCHIP_HIC_MODE,4,2             ; @MCHIP_HIC_MODE
	.comm	_MCHIP_HIC_MODE_STILL_CAP,4,2   ; @MCHIP_HIC_MODE_STILL_CAP
	.comm	_MCHIP_HIC_CMD,4,2              ; @MCHIP_HIC_CMD
	.comm	_MCHIP_HIC_CMD_START,4,2        ; @MCHIP_HIC_CMD_START
	.comm	_MCHIP_HIC_STATUS,4,2           ; @MCHIP_HIC_STATUS
	.comm	_MCHIP_HIC_STATUS_IDLE,4,2      ; @MCHIP_HIC_STATUS_IDLE
	.no_dead_strip	_mchip_take_picture
.subsections_via_symbols
