	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9t031_set_bus_param
_mt9t031_set_bus_param:                 ## @mt9t031_set_bus_param
	.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	%rsi, %rbx
	callq	_to_soc_camera_control
	movl	%eax, %edi
	callq	_to_i2c_client
	movq	_MT9T031_BUS_PARAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	testq	%rbx, %rcx
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	_SOCAM_PCLK_SAMPLE_FALLING@GOTPCREL(%rip), %rcx
	movq	_MT9T031_PIXEL_CLOCK_CONTROL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testq	%rbx, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_reg_clear
	jmp	LBB0_5
LBB0_4:
	movq	%rax, %rdi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_reg_set
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT9T031_BUS_PARAM,8,3          ## @MT9T031_BUS_PARAM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ## @SOCAM_PCLK_SAMPLE_FALLING
	.comm	_MT9T031_PIXEL_CLOCK_CONTROL,4,2 ## @MT9T031_PIXEL_CLOCK_CONTROL
	.no_dead_strip	_mt9t031_set_bus_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9t031_set_bus_param
_mt9t031_set_bus_param:                 ; @mt9t031_set_bus_param
	.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
	bl	_to_soc_camera_control
	bl	_to_i2c_client
Lloh0:
	adrp	x8, _MT9T031_BUS_PARAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT9T031_BUS_PARAM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	bics	xzr, x19, x8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
Lloh6:
	adrp	x8, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _MT9T031_PIXEL_CLOCK_CONTROL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MT9T031_PIXEL_CLOCK_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	w2, #32768
	tst	x8, x19
	b.eq	LBB0_4
; %bb.3:
	bl	_reg_clear
	b	LBB0_5
LBB0_4:
	bl	_reg_set
LBB0_5:
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MT9T031_BUS_PARAM,8,3          ; @MT9T031_BUS_PARAM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ; @SOCAM_PCLK_SAMPLE_FALLING
	.comm	_MT9T031_PIXEL_CLOCK_CONTROL,4,2 ; @MT9T031_PIXEL_CLOCK_CONTROL
	.no_dead_strip	_mt9t031_set_bus_param
.subsections_via_symbols
