	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_ldb_ch_set_bus_format
_imx_ldb_ch_set_bus_format:             ## @imx_ldb_ch_set_bus_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	movq	_LDB_SPLIT_MODE_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	$129, %esi
	je	LBB0_8
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_15
## %bb.2:
	movl	(%rdi), %esi
	andl	%ecx, %edx
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	testl	%edx, %edx
	je	LBB0_5
LBB0_4:
	movq	_LDB_DATA_WIDTH_CH0_24@GOTPCREL(%rip), %rdi
	orl	(%rdi), %ecx
	movl	%ecx, (%rax)
LBB0_5:
	cmpl	$1, %esi
	je	LBB0_7
## %bb.6:
	testl	%edx, %edx
	jne	LBB0_7
LBB0_15:
	popq	%rbp
	retq
LBB0_8:
	movl	(%rdi), %esi
	andl	%ecx, %edx
	testl	%esi, %esi
	je	LBB0_10
## %bb.9:
	testl	%edx, %edx
	je	LBB0_11
LBB0_10:
	movq	_LDB_DATA_WIDTH_CH0_24@GOTPCREL(%rip), %rdi
	orl	(%rdi), %ecx
	movq	_LDB_BIT_MAP_CH0_JEIDA@GOTPCREL(%rip), %rdi
	orl	(%rdi), %ecx
	movl	%ecx, (%rax)
LBB0_11:
	cmpl	$1, %esi
	je	LBB0_13
## %bb.12:
	testl	%edx, %edx
	je	LBB0_15
LBB0_13:
	movq	_LDB_DATA_WIDTH_CH1_24@GOTPCREL(%rip), %rdx
	movq	_LDB_BIT_MAP_CH1_JEIDA@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	orl	%esi, %ecx
	jmp	LBB0_14
LBB0_7:
	movq	_LDB_DATA_WIDTH_CH1_24@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
LBB0_14:
	movl	%ecx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDB_SPLIT_MODE_EN,4,2          ## @LDB_SPLIT_MODE_EN
	.comm	_LDB_DATA_WIDTH_CH0_24,4,2      ## @LDB_DATA_WIDTH_CH0_24
	.comm	_LDB_DATA_WIDTH_CH1_24,4,2      ## @LDB_DATA_WIDTH_CH1_24
	.comm	_LDB_BIT_MAP_CH0_JEIDA,4,2      ## @LDB_BIT_MAP_CH0_JEIDA
	.comm	_LDB_BIT_MAP_CH1_JEIDA,4,2      ## @LDB_BIT_MAP_CH1_JEIDA
	.no_dead_strip	_imx_ldb_ch_set_bus_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_ldb_ch_set_bus_format
_imx_ldb_ch_set_bus_format:             ; @imx_ldb_ch_set_bus_format
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _LDB_SPLIT_MODE_EN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LDB_SPLIT_MODE_EN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w10, w10, w9
	cmp	w1, #129
	b.eq	LBB0_6
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_11
; %bb.2:
	ldr	w11, [x0]
	cmp	w11, #0
	ccmp	w10, #0, #0, ne
	b.eq	LBB0_4
; %bb.3:
Lloh3:
	adrp	x12, _LDB_DATA_WIDTH_CH0_24@GOTPAGE
Lloh4:
	ldr	x12, [x12, _LDB_DATA_WIDTH_CH0_24@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	orr	w9, w12, w9
	str	w9, [x8]
LBB0_4:
	cmp	w11, #1
	ccmp	w10, #0, #0, ne
	b.eq	LBB0_11
; %bb.5:
Lloh6:
	adrp	x10, _LDB_DATA_WIDTH_CH1_24@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LDB_DATA_WIDTH_CH1_24@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
	b	LBB0_10
LBB0_6:
	ldr	w11, [x0]
	cmp	w11, #0
	ccmp	w10, #0, #0, ne
	b.eq	LBB0_8
; %bb.7:
Lloh9:
	adrp	x12, _LDB_DATA_WIDTH_CH0_24@GOTPAGE
Lloh10:
	ldr	x12, [x12, _LDB_DATA_WIDTH_CH0_24@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
Lloh12:
	adrp	x13, _LDB_BIT_MAP_CH0_JEIDA@GOTPAGE
Lloh13:
	ldr	x13, [x13, _LDB_BIT_MAP_CH0_JEIDA@GOTPAGEOFF]
Lloh14:
	ldr	w13, [x13]
	orr	w9, w12, w9
	orr	w9, w9, w13
	str	w9, [x8]
LBB0_8:
	cmp	w11, #1
	ccmp	w10, #0, #0, ne
	b.eq	LBB0_11
; %bb.9:
Lloh15:
	adrp	x10, _LDB_DATA_WIDTH_CH1_24@GOTPAGE
Lloh16:
	ldr	x10, [x10, _LDB_DATA_WIDTH_CH1_24@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _LDB_BIT_MAP_CH1_JEIDA@GOTPAGE
Lloh19:
	ldr	x11, [x11, _LDB_BIT_MAP_CH1_JEIDA@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	orr	w10, w11, w10
	orr	w9, w10, w9
LBB0_10:
	str	w9, [x8]
LBB0_11:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LDB_SPLIT_MODE_EN,4,2          ; @LDB_SPLIT_MODE_EN
	.comm	_LDB_DATA_WIDTH_CH0_24,4,2      ; @LDB_DATA_WIDTH_CH0_24
	.comm	_LDB_DATA_WIDTH_CH1_24,4,2      ; @LDB_DATA_WIDTH_CH1_24
	.comm	_LDB_BIT_MAP_CH0_JEIDA,4,2      ; @LDB_BIT_MAP_CH0_JEIDA
	.comm	_LDB_BIT_MAP_CH1_JEIDA,4,2      ; @LDB_BIT_MAP_CH1_JEIDA
	.no_dead_strip	_imx_ldb_ch_set_bus_format
.subsections_via_symbols
