	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kingdisplay_panel_add
_kingdisplay_panel_add:                 ## @kingdisplay_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, 40(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	40(%rbx), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	32(%rbx), %rdi
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	$0, 32(%rbx)
LBB0_5:
	movq	%r14, %rdi
	callq	_devm_of_find_backlight
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	24(%rbx), %rdi
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	%rbx, %rdi
	callq	_drm_panel_init
	movq	_kingdisplay_panel_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_drm_panel_add                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.2:                               ## @.str.2
	.asciz	"failed to get enable gpio: %d\n"

	.comm	_kingdisplay_panel_funcs,4,2    ## @kingdisplay_panel_funcs
	.no_dead_strip	_kingdisplay_panel_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kingdisplay_panel_add
_kingdisplay_panel_add:                 ; @kingdisplay_panel_add
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #40]
	b	LBB0_6
LBB0_2:
Lloh2:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #32]
	bl	_PTR_ERR
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	str	xzr, [x19, #32]
LBB0_4:
	mov	x0, x20
	bl	_devm_of_find_backlight
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x19, #24]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_7:
	mov	x0, x19
	bl	_drm_panel_init
Lloh9:
	adrp	x8, _kingdisplay_panel_funcs@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kingdisplay_panel_funcs@GOTPAGEOFF]
	ldr	x9, [x19, #16]
	stp	x9, x8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drm_panel_add
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.2:                               ; @.str.2
	.asciz	"failed to get enable gpio: %d\n"

	.comm	_kingdisplay_panel_funcs,4,2    ; @kingdisplay_panel_funcs
	.no_dead_strip	_kingdisplay_panel_add
.subsections_via_symbols
