	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function truly_nt35597_panel_add
_truly_nt35597_panel_add:               ## @truly_nt35597_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	32(%rdi), %rdi
	movq	48(%r12), %r14
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	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	32(%r12), %rdi
	movl	%eax, (%rdi,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	32(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	32(%r12), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	24(%r12), %rdi
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	movq	24(%r12), %rdi
	jmp	LBB0_9
LBB0_4:
	movl	%eax, %r15d
	jmp	LBB0_11
LBB0_7:
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	callq	_PTR_ERR
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	movq	16(%r12), %rdi
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movq	%r12, %rdi
	callq	_drm_panel_init
	movq	%r14, 8(%r12)
	movq	_truly_nt35597_drm_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_drm_panel_add
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_regulator_names,8,3            ## @regulator_names
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.1:                               ## @.str.1
	.asciz	"cannot get reset gpio %ld\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"cannot get mode gpio %ld\n"

	.comm	_truly_nt35597_drm_funcs,4,2    ## @truly_nt35597_drm_funcs
	.no_dead_strip	_truly_nt35597_panel_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function truly_nt35597_panel_add
_truly_nt35597_panel_add:               ; @truly_nt35597_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	x19, x0
	ldr	x20, [x0, #48]
	ldr	x0, [x0, #32]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
Lloh0:
	adrp	x22, _regulator_names@GOTPAGE
Lloh1:
	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, [x19, #32]
	str	w8, [x0, x9]
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldr	x0, [x19, #32]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x19, #32]
	mov	x0, x20
	bl	_devm_regulator_bulk_get
	tbnz	w0, #31, LBB0_10
; %bb.4:
Lloh2:
	adrp	x21, _GPIOD_OUT_LOW@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GPIOD_OUT_LOW@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_DRM_DEV_ERROR
	ldr	x0, [x19, #24]
	b	LBB0_8
LBB0_6:
	ldr	w2, [x21]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
	bl	_PTR_ERR
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_DRM_DEV_ERROR
	ldr	x0, [x19, #16]
LBB0_8:
	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	_PTR_ERR
LBB0_9:
	mov	w1, #0
	bl	_gpiod_set_value
	mov	x0, x19
	bl	_drm_panel_init
Lloh12:
	adrp	x8, _truly_nt35597_drm_funcs@GOTPAGE
Lloh13:
	ldr	x8, [x8, _truly_nt35597_drm_funcs@GOTPAGEOFF]
	stp	x8, x20, [x19]
	mov	x0, x19
	bl	_drm_panel_add
	mov	w0, #0
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_regulator_names,8,3            ; @regulator_names
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.1:                               ; @.str.1
	.asciz	"cannot get reset gpio %ld\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"cannot get mode gpio %ld\n"

	.comm	_truly_nt35597_drm_funcs,4,2    ; @truly_nt35597_drm_funcs
	.no_dead_strip	_truly_nt35597_panel_add
.subsections_via_symbols
