	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_set_lane_config
_dsi_set_lane_config:                   ## @dsi_set_lane_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	%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
	movq	_DSI_COMPLEXIO_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dsi_read_reg
	cmpl	$0, (%r14)
	jle	LBB0_1
## %bb.7:
	xorl	%r13d, %r13d
	leaq	_dsi_set_lane_config.offsets(%rip), %r12
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	4(%r14), %ecx
	movl	$0, %esi
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r14), %rdx
	leaq	_dsi_set_lane_config.functions(%rip), %rsi
	movl	(%rsi,%r13,4), %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%edi, (%rdx,%rsi,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_10
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%ecx, %esi
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12,%r13,4), %ebx
	movq	8(%r14), %rcx
	movl	%esi, %edx
	movl	4(%rcx,%rdx,8), %r15d
	incl	%esi
	leal	2(%rbx), %edx
	movl	%eax, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %ecx
	callq	_FLD_MOD
	addl	$3, %ebx
	movl	%eax, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_FLD_MOD
	incq	%r13
	movslq	(%r14), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_8
	jmp	LBB0_2
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
LBB0_2:
	cmpl	4(%r14), %r13d
	jae	LBB0_5
## %bb.3:
	movl	%r13d, %r15d
	leaq	_dsi_set_lane_config.offsets(%rip), %rcx
	leaq	(%rcx,%r15,4), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ebx
	leal	2(%rbx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_FLD_MOD
	addl	$3, %ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_FLD_MOD
	incq	%r15
	movl	4(%r14), %ecx
	addq	$4, %r12
	cmpq	%rcx, %r15
	jb	LBB0_4
LBB0_5:
	movq	_DSI_COMPLEXIO_CFG1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dsi_write_reg
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @dsi_set_lane_config.offsets
_dsi_set_lane_config.offsets:
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.long	12                              ## 0xc
	.long	16                              ## 0x10

	.p2align	4                               ## @dsi_set_lane_config.functions
_dsi_set_lane_config.functions:
	.long	132                             ## 0x84
	.long	131                             ## 0x83
	.long	130                             ## 0x82
	.long	129                             ## 0x81
	.long	128                             ## 0x80

	.comm	_DSI_COMPLEXIO_CFG1,4,2         ## @DSI_COMPLEXIO_CFG1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dsi_set_lane_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_set_lane_config
_dsi_set_lane_config:                   ; @dsi_set_lane_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x22, _DSI_COMPLEXIO_CFG1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DSI_COMPLEXIO_CFG1@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_dsi_read_reg
	mov	x3, x0
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x24, _dsi_set_lane_config.offsets@PAGE
Lloh3:
	add	x24, x24, _dsi_set_lane_config.offsets@PAGEOFF
Lloh4:
	adrp	x25, _dsi_set_lane_config.functions@PAGE
Lloh5:
	add	x25, x25, _dsi_set_lane_config.functions@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, #0
	ldr	x10, [x19, #8]
	ldr	w11, [x25, x23, lsl #2]
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x10]
	cmp	w12, w11
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x8, x8, #1
	add	x10, x10, #8
	cmp	x9, x8
	b.ne	LBB0_4
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #0
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w20, [x24, x23, lsl #2]
	ldr	x9, [x19, #8]
	add	x9, x9, w8, uxtw #3
	ldr	w21, [x9, #4]
	add	w1, w8, #1
	add	w2, w20, #2
	mov	x0, x3
	mov	x3, x20
	bl	_FLD_MOD
	add	w2, w20, #3
	mov	x1, x21
	mov	x3, x2
	bl	_FLD_MOD
	mov	x3, x0
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_2
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_10:
	mov	w23, #0
LBB0_11:
	ldr	w8, [x19, #4]
	cmp	w23, w8
	b.hs	LBB0_14
; %bb.12:
	mov	w21, w23
Lloh9:
	adrp	x23, _dsi_set_lane_config.offsets@PAGE
Lloh10:
	add	x23, x23, _dsi_set_lane_config.offsets@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x23, x21, lsl #2]
	add	w2, w20, #2
	mov	x0, x3
	mov	w1, #0
	mov	x3, x20
	bl	_FLD_MOD
	add	w2, w20, #3
	mov	w1, #0
	mov	x3, x2
	bl	_FLD_MOD
	mov	x3, x0
	add	x21, x21, #1
	ldr	w8, [x19, #4]
	cmp	x21, x8
	b.lo	LBB0_13
LBB0_14:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x3
	bl	_dsi_write_reg
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @dsi_set_lane_config.offsets
_dsi_set_lane_config.offsets:
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.long	12                              ; 0xc
	.long	16                              ; 0x10

	.p2align	2                               ; @dsi_set_lane_config.functions
_dsi_set_lane_config.functions:
	.long	132                             ; 0x84
	.long	131                             ; 0x83
	.long	130                             ; 0x82
	.long	129                             ; 0x81
	.long	128                             ; 0x80

	.comm	_DSI_COMPLEXIO_CFG1,4,2         ; @DSI_COMPLEXIO_CFG1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dsi_set_lane_config
.subsections_via_symbols
