	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx1_camera_set_bus_param
_mx1_camera_set_bus_param:              ## @mx1_camera_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_to_soc_camera_host
	movq	(%rax), %r15
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	_CSI_BUS_FLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_soc_camera_bus_param_compatible
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$8, (%r14)
	movq	_SOCAM_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rbx, %rax
	je	LBB0_8
## %bb.3:
	movq	_SOCAM_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rbx, %rcx
	je	LBB0_8
## %bb.4:
	movq	8(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movq	_MX1_CAMERA_VSYNC_HIGH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx)
	je	LBB0_7
LBB0_6:
	notq	%rcx
	andq	%rcx, %rbx
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_29
LBB0_7:
	notq	%rax
	andq	%rax, %rbx
LBB0_8:
	movq	_SOCAM_PCLK_SAMPLE_RISING@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testq	%rbx, %rax
	je	LBB0_14
## %bb.9:
	movq	_SOCAM_PCLK_SAMPLE_FALLING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rbx, %rcx
	je	LBB0_14
## %bb.10:
	movq	8(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.11:
	movq	_MX1_CAMERA_PCLK_RISING@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx)
	je	LBB0_13
LBB0_12:
	notq	%rcx
	andq	%rcx, %rbx
	jmp	LBB0_14
LBB0_13:
	notq	%rax
	andq	%rax, %rbx
LBB0_14:
	movq	_SOCAM_DATA_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rbx, %rax
	je	LBB0_20
## %bb.15:
	movq	_SOCAM_DATA_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rbx, %rcx
	je	LBB0_20
## %bb.16:
	movq	8(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.17:
	movq	_MX1_CAMERA_DATA_HIGH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx)
	je	LBB0_19
LBB0_18:
	notq	%rcx
	andq	%rcx, %rbx
	jmp	LBB0_20
LBB0_19:
	notq	%rax
	andq	%rax, %rbx
LBB0_20:
	movq	8(%r14), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*8(%rax)
	testl	%eax, %eax
	js	LBB0_21
## %bb.22:
	movq	_CSICR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	___raw_readl
	xorl	%r14d, %r14d
	movq	(%r13), %rcx
	movl	$0, %edi
	andq	%rbx, %rcx
	je	LBB0_24
## %bb.23:
	movq	_CSICR1_REDGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_24:
	movq	(%r12), %rdx
	movl	$0, %ecx
	andq	%rbx, %rdx
	je	LBB0_26
## %bb.25:
	movq	_CSICR1_SOF_POL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_26:
	orl	%eax, %edi
	movq	_SOCAM_DATA_ACTIVE_LOW@GOTPCREL(%rip), %rdx
	movl	$0, %eax
	andq	(%rdx), %rbx
	je	LBB0_28
## %bb.27:
	movq	_CSICR1_DATA_POL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_28:
	orl	%eax, %ecx
	orl	%ecx, %edi
	movq	_CSICR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	callq	___raw_writel
	jmp	LBB0_29
LBB0_21:
	movl	%eax, %r14d
LBB0_29:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSI_BUS_FLAGS,4,2              ## @CSI_BUS_FLAGS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCAM_VSYNC_ACTIVE_HIGH,8,3    ## @SOCAM_VSYNC_ACTIVE_HIGH
	.comm	_SOCAM_VSYNC_ACTIVE_LOW,8,3     ## @SOCAM_VSYNC_ACTIVE_LOW
	.comm	_MX1_CAMERA_VSYNC_HIGH,4,2      ## @MX1_CAMERA_VSYNC_HIGH
	.comm	_SOCAM_PCLK_SAMPLE_RISING,8,3   ## @SOCAM_PCLK_SAMPLE_RISING
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ## @SOCAM_PCLK_SAMPLE_FALLING
	.comm	_MX1_CAMERA_PCLK_RISING,4,2     ## @MX1_CAMERA_PCLK_RISING
	.comm	_SOCAM_DATA_ACTIVE_HIGH,8,3     ## @SOCAM_DATA_ACTIVE_HIGH
	.comm	_SOCAM_DATA_ACTIVE_LOW,8,3      ## @SOCAM_DATA_ACTIVE_LOW
	.comm	_MX1_CAMERA_DATA_HIGH,4,2       ## @MX1_CAMERA_DATA_HIGH
	.comm	_CSICR1,8,3                     ## @CSICR1
	.comm	_CSICR1_REDGE,4,2               ## @CSICR1_REDGE
	.comm	_CSICR1_SOF_POL,4,2             ## @CSICR1_SOF_POL
	.comm	_CSICR1_DATA_POL,4,2            ## @CSICR1_DATA_POL
	.no_dead_strip	_mx1_camera_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 mx1_camera_set_bus_param
_mx1_camera_set_bus_param:              ; @mx1_camera_set_bus_param
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	w0, [x0, #16]
	bl	_to_soc_camera_host
	ldr	x21, [x0]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
Lloh0:
	adrp	x8, _CSI_BUS_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSI_BUS_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_soc_camera_bus_param_compatible
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	w8, #8
	str	w8, [x20]
Lloh3:
	adrp	x22, _SOCAM_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SOCAM_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
	ldr	x8, [x22]
	tst	x8, x0
	b.eq	LBB0_8
; %bb.2:
Lloh5:
	adrp	x9, _SOCAM_VSYNC_ACTIVE_LOW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOCAM_VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	tst	x9, x19
	b.eq	LBB0_8
; %bb.3:
	ldr	x10, [x21, #8]
	cbz	x10, LBB0_5
; %bb.4:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _MX1_CAMERA_VSYNC_HIGH@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MX1_CAMERA_VSYNC_HIGH@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_7
LBB0_5:
	bic	x19, x19, x9
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_7:
	bic	x19, x19, x8
LBB0_8:
Lloh14:
	adrp	x23, _SOCAM_PCLK_SAMPLE_RISING@GOTPAGE
Lloh15:
	ldr	x23, [x23, _SOCAM_PCLK_SAMPLE_RISING@GOTPAGEOFF]
	ldr	x8, [x23]
	tst	x8, x19
	b.eq	LBB0_14
; %bb.9:
Lloh16:
	adrp	x9, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	tst	x9, x19
	b.eq	LBB0_14
; %bb.10:
	ldr	x10, [x21, #8]
	cbz	x10, LBB0_12
; %bb.11:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, _MX1_CAMERA_PCLK_RISING@GOTPAGE
Lloh20:
	ldr	x11, [x11, _MX1_CAMERA_PCLK_RISING@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_13
LBB0_12:
	bic	x19, x19, x9
	b	LBB0_14
LBB0_13:
	bic	x19, x19, x8
LBB0_14:
Lloh22:
	adrp	x8, _SOCAM_DATA_ACTIVE_HIGH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SOCAM_DATA_ACTIVE_HIGH@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
Lloh25:
	adrp	x24, _SOCAM_DATA_ACTIVE_LOW@GOTPAGE
Lloh26:
	ldr	x24, [x24, _SOCAM_DATA_ACTIVE_LOW@GOTPAGEOFF]
	tst	x8, x19
	b.eq	LBB0_20
; %bb.15:
	ldr	x9, [x24]
	tst	x9, x19
	b.eq	LBB0_20
; %bb.16:
	ldr	x10, [x21, #8]
	cbz	x10, LBB0_18
; %bb.17:
	ldr	w10, [x10]
Lloh27:
	adrp	x11, _MX1_CAMERA_DATA_HIGH@GOTPAGE
Lloh28:
	ldr	x11, [x11, _MX1_CAMERA_DATA_HIGH@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_19
LBB0_18:
	bic	x19, x19, x9
	b	LBB0_20
LBB0_19:
	bic	x19, x19, x8
LBB0_20:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	tbnz	w0, #31, LBB0_22
; %bb.21:
	ldr	x8, [x21]
Lloh30:
	adrp	x20, _CSICR1@GOTPAGE
Lloh31:
	ldr	x20, [x20, _CSICR1@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	___raw_readl
	ldr	x8, [x23]
Lloh32:
	adrp	x9, _CSICR1_REDGE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CSICR1_REDGE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	x8, x19
	csel	w8, wzr, w9, eq
	orr	w8, w8, w0
	ldr	x9, [x22]
Lloh35:
	adrp	x10, _CSICR1_SOF_POL@GOTPAGE
Lloh36:
	ldr	x10, [x10, _CSICR1_SOF_POL@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	tst	x9, x19
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	ldr	x9, [x24]
Lloh38:
	adrp	x10, _CSICR1_DATA_POL@GOTPAGE
Lloh39:
	ldr	x10, [x10, _CSICR1_DATA_POL@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	tst	x9, x19
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	___raw_writel
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CSI_BUS_FLAGS,4,2              ; @CSI_BUS_FLAGS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCAM_VSYNC_ACTIVE_HIGH,8,3    ; @SOCAM_VSYNC_ACTIVE_HIGH
	.comm	_SOCAM_VSYNC_ACTIVE_LOW,8,3     ; @SOCAM_VSYNC_ACTIVE_LOW
	.comm	_MX1_CAMERA_VSYNC_HIGH,4,2      ; @MX1_CAMERA_VSYNC_HIGH
	.comm	_SOCAM_PCLK_SAMPLE_RISING,8,3   ; @SOCAM_PCLK_SAMPLE_RISING
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ; @SOCAM_PCLK_SAMPLE_FALLING
	.comm	_MX1_CAMERA_PCLK_RISING,4,2     ; @MX1_CAMERA_PCLK_RISING
	.comm	_SOCAM_DATA_ACTIVE_HIGH,8,3     ; @SOCAM_DATA_ACTIVE_HIGH
	.comm	_SOCAM_DATA_ACTIVE_LOW,8,3      ; @SOCAM_DATA_ACTIVE_LOW
	.comm	_MX1_CAMERA_DATA_HIGH,4,2       ; @MX1_CAMERA_DATA_HIGH
	.comm	_CSICR1,8,3                     ; @CSICR1
	.comm	_CSICR1_REDGE,4,2               ; @CSICR1_REDGE
	.comm	_CSICR1_SOF_POL,4,2             ; @CSICR1_SOF_POL
	.comm	_CSICR1_DATA_POL,4,2            ; @CSICR1_DATA_POL
	.no_dead_strip	_mx1_camera_set_bus_param
.subsections_via_symbols
