	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_configure_pins
_dsi_configure_pins:                    ## @dsi_configure_pins
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_to_dsi_data
	movq	%rax, %r14
	movq	_DSI_MAX_NR_LANES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movl	(%r15), %r9d
	cmpl	$4, %r9d
	jl	LBB0_20
## %bb.1:
	testb	$1, %r9b
	jne	LBB0_20
## %bb.2:
	movl	(%r14), %r10d
	addl	%r10d, %r10d
	cmpl	%r10d, %r9d
	jg	LBB0_20
## %bb.3:
	movq	8(%r15), %r8
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.4:
	movq	_DSI_LANE_UNUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-1(%rbx), %rax
	movl	%ebx, %edi
	andl	$3, %edi
	cmpq	$3, %rax
	jae	LBB0_11
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_11:
	andl	$-4, %ebx
	leaq	48(%rsi), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, -48(%rcx)
	movl	%edx, -32(%rcx)
	movl	%edx, -16(%rcx)
	movl	%edx, (%rcx)
	addq	$4, %rax
	addq	$64, %rcx
	cmpq	%rax, %rbx
	jne	LBB0_12
LBB0_6:
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	shlq	$4, %rax
	movq	%rsi, %rcx
	addq	%rax, %rcx
	shlq	$4, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rax, %rdi
	jne	LBB0_8
LBB0_9:
	testl	%r9d, %r9d
	jle	LBB0_10
LBB0_13:
	leaq	_dsi_configure_pins.functions(%rip), %r11
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	leal	-1(%rax), %r15d
	movl	$1, %edi
	cmpl	%r15d, %ecx
	jne	LBB0_20
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	andl	$-2, %eax
	movl	(%r11), %ecx
	movl	%ecx, (%rsi,%rax,8)
	movq	%rdi, 8(%rsi,%rax,8)
	incq	%rbx
	addq	$4, %r11
	addl	$2, %edx
	cmpl	%edx, %r9d
	jle	LBB0_24
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rbx,8), %eax
	testl	%eax, %eax
	js	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r10d, %eax
	jge	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	4(%r8,%rbx,8), %ecx
	testl	%ecx, %ecx
	js	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r10d, %ecx
	jge	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	testb	$1, %al
	jne	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	leal	1(%rax), %edi
	cmpl	%edi, %ecx
	jne	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_23
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
LBB0_24:
	movl	8(%r14), %edi
	movl	$4, %edx
	callq	_memcpy
	movl	%ebx, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_MAX_NR_LANES,4,2           ## @DSI_MAX_NR_LANES
	.section	__TEXT,__const
	.p2align	4                               ## @dsi_configure_pins.functions
_dsi_configure_pins.functions:
	.long	132                             ## 0x84
	.long	131                             ## 0x83
	.long	130                             ## 0x82
	.long	129                             ## 0x81
	.long	128                             ## 0x80

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DSI_LANE_UNUSED,4,2            ## @DSI_LANE_UNUSED
	.no_dead_strip	_dsi_configure_pins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_configure_pins
_dsi_configure_pins:                    ; @dsi_configure_pins
	.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
	sub	sp, sp, #16
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_to_dsi_data
	mov	x19, x0
Lloh3:
	adrp	x8, _DSI_MAX_NR_LANES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSI_MAX_NR_LANES@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #4
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x1, x9, x8
	mov	sp, x1
	ldr	w8, [x20]
	cmp	w8, #4
	b.lt	LBB0_23
; %bb.1:
	tbnz	w8, #0, LBB0_23
; %bb.2:
	ldr	w9, [x19]
	lsl	w9, w9, #1
	cmp	w8, w9
	b.gt	LBB0_23
; %bb.3:
	ldr	x10, [x20, #8]
	cmp	w12, #1
	b.lt	LBB0_12
; %bb.4:
Lloh8:
	adrp	x11, _DSI_LANE_UNUSED@GOTPAGE
Lloh9:
	ldr	x11, [x11, _DSI_LANE_UNUSED@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	cmp	w12, #4
	b.hs	LBB0_6
; %bb.5:
	mov	x13, #0
	b	LBB0_9
LBB0_6:
	and	x13, x12, #0xfffffffc
	add	x14, x1, #32
	mov	x15, x13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	stur	w11, [x14, #-32]
	stur	w11, [x14, #-16]
	str	w11, [x14]
	str	w11, [x14, #16]
	add	x14, x14, #64
	subs	x15, x15, #4
	b.ne	LBB0_7
; %bb.8:
	cmp	x13, x12
	b.eq	LBB0_11
LBB0_9:
	add	x14, x1, x13, lsl #4
	sub	x12, x12, x13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	w11, [x14], #16
	subs	x12, x12, #1
	b.ne	LBB0_10
LBB0_11:
	cmp	w8, #1
	b.lt	LBB0_26
LBB0_12:
	mov	x20, #0
	mov	x11, #0
Lloh11:
	adrp	x12, _dsi_configure_pins.functions@PAGE
Lloh12:
	add	x12, x12, _dsi_configure_pins.functions@PAGEOFF
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w15, w13, #1
	cmp	w14, w15
	b.ne	LBB0_23
; %bb.14:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x14, #0
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	lsl	x13, x13, #3
	and	x13, x13, #0x7fffffff0
	ldr	w15, [x12, x20, lsl #2]
	add	x13, x1, x13
	str	w15, [x13]
	str	x14, [x13, #8]
	add	x11, x11, #2
	add	x20, x20, #1
	cmp	w8, w11
	b.le	LBB0_27
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x14, x10, x11, lsl #2
	ldr	w13, [x14]
	tbnz	w13, #31, LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w13, w9
	b.ge	LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w14, [x14, #4]
	tbnz	w14, #31, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w14, w9
	b.ge	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	tbz	w13, #0, LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	w15, w13, #1
	cmp	w14, w15
	b.ne	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w14, #1
	b	LBB0_15
LBB0_23:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	ldur	x8, [x29, #-24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.25:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_26:
	mov	w20, #0
LBB0_27:
	ldr	w0, [x19, #8]
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
	str	w20, [x19, #4]
	b	LBB0_24
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_MAX_NR_LANES,4,2           ; @DSI_MAX_NR_LANES
	.section	__TEXT,__const
	.p2align	2                               ; @dsi_configure_pins.functions
_dsi_configure_pins.functions:
	.long	132                             ; 0x84
	.long	131                             ; 0x83
	.long	130                             ; 0x82
	.long	129                             ; 0x81
	.long	128                             ; 0x80

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DSI_LANE_UNUSED,4,2            ; @DSI_LANE_UNUSED
	.no_dead_strip	_dsi_configure_pins
.subsections_via_symbols
