	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7180_g_mbus_config
_adv7180_g_mbus_config:                 ## @adv7180_g_mbus_config
	.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_state
	movq	(%rax), %rax
	movq	_ADV7180_FLAG_MIPI_CSI2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_V4L2_MBUS_CSI2_DPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_V4L2_MBUS_CSI2_1_LANE@GOTPCREL(%rip), %rcx
	movq	_V4L2_MBUS_CSI2_CHANNEL_0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_V4L2_MBUS_CSI2_CONTINUOUS_CLOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	_V4L2_MBUS_MASTER@GOTPCREL(%rip), %rax
	movq	_V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_MBUS_DATA_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_V4L2_MBUS_BT656@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7180_FLAG_MIPI_CSI2,4,2     ## @ADV7180_FLAG_MIPI_CSI2
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ## @V4L2_MBUS_CSI2_DPHY
	.comm	_V4L2_MBUS_CSI2_1_LANE,4,2      ## @V4L2_MBUS_CSI2_1_LANE
	.comm	_V4L2_MBUS_CSI2_CHANNEL_0,4,2   ## @V4L2_MBUS_CSI2_CHANNEL_0
	.comm	_V4L2_MBUS_CSI2_CONTINUOUS_CLOCK,4,2 ## @V4L2_MBUS_CSI2_CONTINUOUS_CLOCK
	.comm	_V4L2_MBUS_MASTER,4,2           ## @V4L2_MBUS_MASTER
	.comm	_V4L2_MBUS_PCLK_SAMPLE_RISING,4,2 ## @V4L2_MBUS_PCLK_SAMPLE_RISING
	.comm	_V4L2_MBUS_DATA_ACTIVE_HIGH,4,2 ## @V4L2_MBUS_DATA_ACTIVE_HIGH
	.comm	_V4L2_MBUS_BT656,4,2            ## @V4L2_MBUS_BT656
	.no_dead_strip	_adv7180_g_mbus_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7180_g_mbus_config
_adv7180_g_mbus_config:                 ; @adv7180_g_mbus_config
	.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_state
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _ADV7180_FLAG_MIPI_CSI2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADV7180_FLAG_MIPI_CSI2@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _V4L2_MBUS_CSI2_DPHY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_MBUS_CSI2_DPHY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _V4L2_MBUS_CSI2_1_LANE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_MBUS_CSI2_1_LANE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _V4L2_MBUS_CSI2_CHANNEL_0@GOTPAGE
Lloh10:
	ldr	x10, [x10, _V4L2_MBUS_CSI2_CHANNEL_0@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh12:
	adrp	x10, _V4L2_MBUS_CSI2_CONTINUOUS_CLOCK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _V4L2_MBUS_CSI2_CONTINUOUS_CLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x19]
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _V4L2_MBUS_MASTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_MBUS_MASTER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPAGE
Lloh19:
	ldr	x9, [x9, _V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _V4L2_MBUS_DATA_ACTIVE_HIGH@GOTPAGE
Lloh22:
	ldr	x9, [x9, _V4L2_MBUS_DATA_ACTIVE_HIGH@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh24:
	adrp	x8, _V4L2_MBUS_BT656@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V4L2_MBUS_BT656@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
LBB0_3:
	str	w8, [x19, #4]
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7180_FLAG_MIPI_CSI2,4,2     ; @ADV7180_FLAG_MIPI_CSI2
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ; @V4L2_MBUS_CSI2_DPHY
	.comm	_V4L2_MBUS_CSI2_1_LANE,4,2      ; @V4L2_MBUS_CSI2_1_LANE
	.comm	_V4L2_MBUS_CSI2_CHANNEL_0,4,2   ; @V4L2_MBUS_CSI2_CHANNEL_0
	.comm	_V4L2_MBUS_CSI2_CONTINUOUS_CLOCK,4,2 ; @V4L2_MBUS_CSI2_CONTINUOUS_CLOCK
	.comm	_V4L2_MBUS_MASTER,4,2           ; @V4L2_MBUS_MASTER
	.comm	_V4L2_MBUS_PCLK_SAMPLE_RISING,4,2 ; @V4L2_MBUS_PCLK_SAMPLE_RISING
	.comm	_V4L2_MBUS_DATA_ACTIVE_HIGH,4,2 ; @V4L2_MBUS_DATA_ACTIVE_HIGH
	.comm	_V4L2_MBUS_BT656,4,2            ; @V4L2_MBUS_BT656
	.no_dead_strip	_adv7180_g_mbus_config
.subsections_via_symbols
