	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panel_simple_probe
_panel_simple_probe:                    ## @panel_simple_probe
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	$0, (%rax)
	movq	%rbx, 56(%rax)
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_bool
	movl	%eax, 48(%r12)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 44(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.22:
	movl	44(%r12), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movl	%eax, 40(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	40(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r15d, %ecx
	addl	(%rax), %ecx
	je	LBB0_21
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	jmp	LBB0_21
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_backlight_by_node
	movq	%rax, 8(%r12)
	movq	%rbx, %rdi
	callq	_of_node_put
	cmpq	$0, 8(%r12)
	je	LBB0_9
LBB0_10:
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_i2c_adapter_by_node
	movq	%rax, 16(%r12)
	movq	%rbx, %rdi
	callq	_of_node_put
	cmpq	$0, 16(%r12)
	je	LBB0_12
LBB0_13:
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	-40(%rbp), %rdx
	callq	_of_get_display_timing
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_panel_simple_parse_panel_timing_node
LBB0_15:
	movq	%r12, %rbx
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_drm_panel_init
	movq	%r14, 32(%r12)
	movq	_panel_simple_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movq	%rbx, %rdi
	callq	_drm_panel_add
	testl	%eax, %eax
	js	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_9:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_17:
	movl	%eax, %r15d
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_put_device
	jmp	LBB0_19
LBB0_12:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_19:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_put_device
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no-hpd"

L_.str.1:                               ## @.str.1
	.asciz	"power"

L_.str.2:                               ## @.str.2
	.asciz	"enable"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.3:                               ## @.str.3
	.asciz	"failed to request GPIO: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"backlight"

L_.str.5:                               ## @.str.5
	.asciz	"ddc-i2c-bus"

L_.str.6:                               ## @.str.6
	.asciz	"panel-timing"

	.comm	_panel_simple_funcs,4,2         ## @panel_simple_funcs
	.no_dead_strip	_panel_simple_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panel_simple_probe
_panel_simple_probe:                    ; @panel_simple_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	xzr, [x0]
	str	x21, [x0, #56]
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_bool
	str	w0, [x19, #48]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	w0, [x19, #44]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #44]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
Lloh9:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	w0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w0, [x19, #40]
	bl	_PTR_ERR
	mov	x21, x0
Lloh14:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.8:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	b	LBB0_5
LBB0_9:
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_11
; %bb.10:
	mov	x21, x0
	bl	_of_find_backlight_by_node
	str	x0, [x19, #8]
	mov	x0, x21
	bl	_of_node_put
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_17
LBB0_11:
	ldr	w0, [x20]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_13
; %bb.12:
	mov	x21, x0
	bl	_of_find_i2c_adapter_by_node
	str	x0, [x19, #16]
	mov	x0, x21
	bl	_of_node_put
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_20
LBB0_13:
	ldr	w0, [x20]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #8
	bl	_of_get_display_timing
	cbnz	w0, LBB0_15
; %bb.14:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_panel_simple_parse_panel_timing_node
LBB0_15:
	add	x21, x19, #24
	mov	x0, x21
	bl	_drm_panel_init
Lloh25:
	adrp	x8, _panel_simple_funcs@GOTPAGE
Lloh26:
	ldr	x8, [x8, _panel_simple_funcs@GOTPAGEOFF]
	stp	x8, x20, [x19, #24]
	mov	x0, x21
	bl	_drm_panel_add
	tbnz	w0, #31, LBB0_18
; %bb.16:
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	w21, #0
	b	LBB0_5
LBB0_17:
Lloh27:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_4
LBB0_18:
	mov	x21, x0
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_21
; %bb.19:
	bl	_put_device
	b	LBB0_21
LBB0_20:
Lloh29:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_21:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.22:
	bl	_put_device
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no-hpd"

l_.str.1:                               ; @.str.1
	.asciz	"power"

l_.str.2:                               ; @.str.2
	.asciz	"enable"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.3:                               ; @.str.3
	.asciz	"failed to request GPIO: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"backlight"

l_.str.5:                               ; @.str.5
	.asciz	"ddc-i2c-bus"

l_.str.6:                               ; @.str.6
	.asciz	"panel-timing"

	.comm	_panel_simple_funcs,4,2         ; @panel_simple_funcs
	.no_dead_strip	_panel_simple_probe
.subsections_via_symbols
