	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st7789v_probe
_st7789v_probe:                         ## @st7789v_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_spi_set_drvdata
	movq	%rbx, 32(%r14)
	movq	%rbx, 16(%r14)
	movq	_st7789v_drm_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movl	%eax, 28(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	28(%r14), %edi
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 24(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movl	24(%r14), %edi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_of_find_backlight_by_node
	movq	%rax, (%r14)
	movq	%r15, %rdi
	callq	_of_node_put
	cmpq	$0, (%r14)
	je	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_drm_panel_add
	testl	%eax, %eax
	jns	LBB0_15
## %bb.12:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_put_device
LBB0_14:
	movl	%r15d, %ebx
	jmp	LBB0_15
LBB0_10:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_st7789v_drm_funcs,4,2          ## @st7789v_drm_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power"

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

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't get our reset line\n"

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

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.no_dead_strip	_st7789v_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st7789v_probe
_st7789v_probe:                         ; @st7789v_probe
	.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	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	bl	_spi_set_drvdata
Lloh3:
	adrp	x8, _st7789v_drm_funcs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _st7789v_drm_funcs@GOTPAGEOFF]
	mov	x20, x19
	str	x8, [x20, #8]!
	str	x21, [x20, #24]
	str	x21, [x20, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	w0, [x20, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #28]
	b	LBB0_8
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	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
	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.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_devm_gpiod_get
	str	w0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w0, [x19, #24]
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:
	ldr	w0, [x21]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@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]
	mov	x0, x21
	bl	_of_node_put
	ldr	x8, [x19]
	cbz	x8, LBB0_15
LBB0_11:
	mov	x0, x20
	bl	_drm_panel_add
	tbnz	w0, #31, LBB0_13
; %bb.12:
	mov	w20, #0
	b	LBB0_5
LBB0_13:
	mov	x20, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.14:
	bl	_put_device
	b	LBB0_5
LBB0_15:
Lloh18:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_st7789v_drm_funcs,4,2          ; @st7789v_drm_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power"

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

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't get our reset line\n"

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

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.no_dead_strip	_st7789v_probe
.subsections_via_symbols
