	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9p031_reset
_mt9p031_reset:                         ## @mt9p031_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	addq	$4, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	movq	_MT9P031_RST@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MT9P031_RST_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt9p031_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	(%r15), %esi
	movq	_MT9P031_RST_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt9p031_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	_MT9P031_PIXEL_CLOCK_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r14), %edi
	callq	_MT9P031_PIXEL_CLOCK_DIVIDE
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mt9p031_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_MT9P031_OUTPUT_CONTROL_CEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt9p031_set_output_control     ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT9P031_RST,4,2                ## @MT9P031_RST
	.comm	_MT9P031_RST_ENABLE,4,2         ## @MT9P031_RST_ENABLE
	.comm	_MT9P031_RST_DISABLE,4,2        ## @MT9P031_RST_DISABLE
	.comm	_MT9P031_PIXEL_CLOCK_CONTROL,4,2 ## @MT9P031_PIXEL_CLOCK_CONTROL
	.comm	_MT9P031_OUTPUT_CONTROL_CEN,4,2 ## @MT9P031_OUTPUT_CONTROL_CEN
	.no_dead_strip	_mt9p031_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9p031_reset
_mt9p031_reset:                         ; @mt9p031_reset
	.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, x0
	add	x0, x0, #4
	bl	_v4l2_get_subdevdata
	mov	x20, x0
Lloh0:
	adrp	x21, _MT9P031_RST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MT9P031_RST@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _MT9P031_RST_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT9P031_RST_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_mt9p031_write
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _MT9P031_RST_DISABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT9P031_RST_DISABLE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mt9p031_write
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _MT9P031_PIXEL_CLOCK_CONTROL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MT9P031_PIXEL_CLOCK_CONTROL@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	ldr	w0, [x19]
	bl	_MT9P031_PIXEL_CLOCK_DIVIDE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mt9p031_write
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _MT9P031_OUTPUT_CONTROL_CEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MT9P031_OUTPUT_CONTROL_CEN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	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
	b	_mt9p031_set_output_control
LBB0_4:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MT9P031_RST,4,2                ; @MT9P031_RST
	.comm	_MT9P031_RST_ENABLE,4,2         ; @MT9P031_RST_ENABLE
	.comm	_MT9P031_RST_DISABLE,4,2        ; @MT9P031_RST_DISABLE
	.comm	_MT9P031_PIXEL_CLOCK_CONTROL,4,2 ; @MT9P031_PIXEL_CLOCK_CONTROL
	.comm	_MT9P031_OUTPUT_CONTROL_CEN,4,2 ; @MT9P031_OUTPUT_CONTROL_CEN
	.no_dead_strip	_mt9p031_reset
.subsections_via_symbols
