	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_probe_of
_dsi_probe_of:                          ## @dsi_probe_of
	.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	%r12
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_of_graph_get_endpoint_by_regs
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-132(%rbp), %rdx
	movq	%rax, %rdi
	callq	_of_find_property
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	-132(%rbp), %r12d
	cmpl	$32, %r12d
	jl	LBB0_7
## %bb.5:
	movl	%r12d, %eax
	andl	$8, %eax
	jne	LBB0_7
## %bb.6:
	sarl	$3, %r12d
	movl	(%r15), %eax
	addl	%eax, %eax
	cmpl	%eax, %r12d
	jle	LBB0_8
LBB0_7:
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_of_node_put
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_12
## %bb.15:
	movl	%ebx, %eax
	addq	$112, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rsi
	leaq	-128(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_of_property_read_u32_array
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_10
LBB0_13:
	cmpl	$2, %r12d
	movl	$1, %eax
	cmovgel	%r12d, %eax
	decq	%rax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	decq	%rax
	jmp	LBB0_14
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lanes"

L_.str.1:                               ## @.str.1
	.asciz	"failed to find lane data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"bad number of lanes\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to read lane data\n"

	.no_dead_strip	_dsi_probe_of
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_probe_of
_dsi_probe_of:                          ; @dsi_probe_of
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_of_graph_get_endpoint_by_regs
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #4
	bl	_of_find_property
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [sp, #4]
	and	w9, w8, #0x8
	cmp	w8, #32
	ccmp	w9, #0, #0, ge
	b.ne	LBB0_4
; %bb.3:
	asr	w22, w8, #3
	ldr	w8, [x20]
	cmp	w22, w8, lsl #1
	b.le	LBB0_11
LBB0_4:
	ldr	x0, [x20, #8]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	b	LBB0_9
LBB0_6:
	ldr	x0, [x20, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x19
	bl	_of_node_put
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.10:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x22
	bl	_of_property_read_u32_array
	cbz	w0, LBB0_13
; %bb.12:
	mov	x21, x0
	ldr	x0, [x20, #8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_13:
	cmp	w22, #1
	csinc	w8, w22, wzr, gt
	sub	x8, x8, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	sub	x8, x8, #1
	b	LBB0_14
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lanes"

l_.str.1:                               ; @.str.1
	.asciz	"failed to find lane data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"bad number of lanes\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to read lane data\n"

	.no_dead_strip	_dsi_probe_of
.subsections_via_symbols
