	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nt39016_probe
_nt39016_probe:                         ## @nt39016_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%r14, 40(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_spi_set_drvdata
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 32(%r12)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 28(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	28(%r12), %edi
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 24(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	24(%r12), %edi
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	movl	$8, (%r15)
	movq	_SPI_MODE_3@GOTPCREL(%rip), %rax
	movq	_SPI_3WIRE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	movq	%r15, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_17:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_20
LBB0_12:
	movq	_nt39016_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regmap_init_spi
	movl	%eax, 20(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	20(%r12), %edi
	jmp	LBB0_7
LBB0_14:
	movq	%r14, %rdi
	callq	_devm_of_find_backlight
	movl	%eax, 16(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movl	16(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_20
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_17
LBB0_18:
	movq	%r12, %rdi
	callq	_drm_panel_init
	movq	%r14, 8(%r12)
	movq	_nt39016_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_drm_panel_add
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_20
## %bb.19:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get power supply"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.3:                               ## @.str.3
	.asciz	"Failed to get reset GPIO"

	.comm	_SPI_MODE_3,4,2                 ## @SPI_MODE_3
	.comm	_SPI_3WIRE,4,2                  ## @SPI_3WIRE
L_.str.4:                               ## @.str.4
	.asciz	"Failed to setup SPI"

	.comm	_nt39016_regmap_config,4,2      ## @nt39016_regmap_config
L_.str.5:                               ## @.str.5
	.asciz	"Failed to init regmap"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.6:                               ## @.str.6
	.asciz	"Failed to get backlight handle"

	.comm	_nt39016_funcs,4,2              ## @nt39016_funcs
L_.str.7:                               ## @.str.7
	.asciz	"Failed to register panel"

	.no_dead_strip	_nt39016_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nt39016_probe
_nt39016_probe:                         ; @nt39016_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
	add	x19, x0, #8
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #40]
	mov	x0, x21
	mov	x1, x20
	bl	_spi_set_drvdata
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x20, #32]
	cbz	w0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x20, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #28]
	b	LBB0_10
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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_8:
Lloh11:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #24]
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
	b	_PTR_ERR
LBB0_11:
	mov	w8, #8
	str	w8, [x21]
Lloh18:
	adrp	x8, _SPI_MODE_3@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPI_MODE_3@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _SPI_3WIRE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SPI_3WIRE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_spi_setup
	cbz	w0, LBB0_14
; %bb.12:
	mov	x22, x0
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_14:
Lloh26:
	adrp	x1, _nt39016_regmap_config@GOTPAGE
Lloh27:
	ldr	x1, [x1, _nt39016_regmap_config@GOTPAGEOFF]
	mov	x0, x21
	bl	_devm_regmap_init_spi
	str	w0, [x20, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #20]
	b	LBB0_10
LBB0_16:
	mov	x0, x19
	bl	_devm_of_find_backlight
	str	w0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.17:
	ldr	w0, [x20, #16]
	bl	_PTR_ERR
	mov	x22, x0
Lloh30:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_7
; %bb.18:
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_19:
	mov	x0, x20
	bl	_drm_panel_init
Lloh35:
	adrp	x8, _nt39016_funcs@GOTPAGE
Lloh36:
	ldr	x8, [x8, _nt39016_funcs@GOTPAGEOFF]
	stp	x8, x19, [x20]
	mov	x0, x20
	bl	_drm_panel_add
	tbnz	w0, #31, LBB0_21
; %bb.20:
	mov	w22, #0
	b	LBB0_7
LBB0_21:
	mov	x22, x0
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get power supply"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.3:                               ; @.str.3
	.asciz	"Failed to get reset GPIO"

	.comm	_SPI_MODE_3,4,2                 ; @SPI_MODE_3
	.comm	_SPI_3WIRE,4,2                  ; @SPI_3WIRE
l_.str.4:                               ; @.str.4
	.asciz	"Failed to setup SPI"

	.comm	_nt39016_regmap_config,4,2      ; @nt39016_regmap_config
l_.str.5:                               ; @.str.5
	.asciz	"Failed to init regmap"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.6:                               ; @.str.6
	.asciz	"Failed to get backlight handle"

	.comm	_nt39016_funcs,4,2              ; @nt39016_funcs
l_.str.7:                               ; @.str.7
	.asciz	"Failed to register panel"

	.no_dead_strip	_nt39016_probe
.subsections_via_symbols
