	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jdi_panel_add
_jdi_panel_add:                         ## @jdi_panel_add
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	movq	56(%rdi), %rdi
	movq	_default_mode@GOTPCREL(%rip), %rax
	movq	%rax, 64(%r12)
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_regulator_names@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %eax
	movq	56(%r12), %rdi
	movl	%eax, (%rdi,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movq	56(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	56(%r12), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 48(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	48(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_6:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_7:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	40(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_13
LBB0_9:
	movl	(%r15), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	32(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_13
LBB0_11:
	movq	16(%r12), %rdi
	callq	_drm_panel_create_dsi_backlight
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	24(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r12, %rdi
	callq	_drm_panel_init
	movq	_jdi_panel_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movq	16(%r12), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_panel_add                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_default_mode,4,2               ## @default_mode
	.comm	_regulator_names,8,3            ## @regulator_names
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to init regulator, ret=%d\n"

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

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.2:                               ## @.str.2
	.asciz	"cannot get enable-gpio %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.4:                               ## @.str.4
	.asciz	"cannot get reset-gpios %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"dcdc-en"

L_.str.6:                               ## @.str.6
	.asciz	"cannot get dcdc-en-gpio %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to register backlight %d\n"

	.comm	_jdi_panel_funcs,4,2            ## @jdi_panel_funcs
	.no_dead_strip	_jdi_panel_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jdi_panel_add
_jdi_panel_add:                         ; @jdi_panel_add
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _default_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _default_mode@GOTPAGEOFF]
	str	x8, [x0, #64]
	ldr	x0, [x0, #56]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x22, _regulator_names@GOTPAGE
Lloh3:
	ldr	x22, [x22, _regulator_names@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x9, x21, #2
	ldr	w8, [x8, x9]
	ldr	x0, [x20, #56]
	str	w8, [x0, x9]
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
	ldr	x0, [x20, #56]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x20, #56]
	mov	x0, x19
	bl	_devm_regulator_bulk_get
	tbnz	w0, #31, LBB0_6
; %bb.4:
Lloh4:
	adrp	x21, _GPIOD_OUT_LOW@GOTPAGE
Lloh5:
	ldr	x21, [x21, _GPIOD_OUT_LOW@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x20, #48]
	bl	_PTR_ERR
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_6:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh12:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x20, #40]
	bl	_PTR_ERR
	mov	x21, x0
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_9:
	ldr	w2, [x21]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
	mov	x21, x0
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	x0, [x20, #16]
	bl	_drm_panel_create_dsi_backlight
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.12:
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
	mov	x21, x0
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_13:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x20
	bl	_drm_panel_init
Lloh25:
	adrp	x8, _jdi_panel_funcs@GOTPAGE
Lloh26:
	ldr	x8, [x8, _jdi_panel_funcs@GOTPAGEOFF]
	ldr	x9, [x20, #16]
	stp	x9, x8, [x20]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_drm_panel_add
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_default_mode,4,2               ; @default_mode
	.comm	_regulator_names,8,3            ; @regulator_names
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to init regulator, ret=%d\n"

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

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.2:                               ; @.str.2
	.asciz	"cannot get enable-gpio %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.4:                               ; @.str.4
	.asciz	"cannot get reset-gpios %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"dcdc-en"

l_.str.6:                               ; @.str.6
	.asciz	"cannot get dcdc-en-gpio %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to register backlight %d\n"

	.comm	_jdi_panel_funcs,4,2            ; @jdi_panel_funcs
	.no_dead_strip	_jdi_panel_add
.subsections_via_symbols
