	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_codec_reset               ## -- Begin function jpeg_codec_reset
	.p2align	4, 0x90
_jpeg_codec_reset:                      ## @jpeg_codec_reset
	.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	%rdi, %rbx
	xorl	%esi, %esi
	callq	_jpeg_codec_sleep
	movq	(%rbx), %rax
	movq	_GPCS_JPEG_RESET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	cmpl	$255, %esi
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movq	_ZR_GPIO_JPEG_RESET@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_GPIO
	movl	$2, %edi
	callq	_udelay
	movq	8(%rbx), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_GPIO
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_post_office_write
LBB0_3:
	movl	$2, %edi
	callq	_udelay
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPCS_JPEG_RESET,8,3            ## @GPCS_JPEG_RESET
	.comm	_ZR_GPIO_JPEG_RESET,8,3         ## @ZR_GPIO_JPEG_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_codec_reset               ; -- Begin function jpeg_codec_reset
	.p2align	2
_jpeg_codec_reset:                      ; @jpeg_codec_reset
	.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
	mov	w1, #0
	bl	_jpeg_codec_sleep
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _GPCS_JPEG_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GPCS_JPEG_RESET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	cmp	w1, #255
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x20, _ZR_GPIO_JPEG_RESET@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ZR_GPIO_JPEG_RESET@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	mov	w2, #0
	bl	_GPIO
	mov	w0, #2
	bl	_udelay
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	mov	w2, #1
	bl	_GPIO
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_post_office_write
LBB0_3:
	mov	w0, #2
	bl	_udelay
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GPCS_JPEG_RESET,8,3            ; @GPCS_JPEG_RESET
	.comm	_ZR_GPIO_JPEG_RESET,8,3         ; @ZR_GPIO_JPEG_RESET
.subsections_via_symbols
