	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acx565akm_probe
_acx565akm_probe:                       ## @acx565akm_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.2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_spi_set_drvdata
	movq	_SPI_MODE_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, 24(%r14)
	leaq	36(%r14), %rdi
	callq	_mutex_init
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 32(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movl	32(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_acx565akm_detect
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_acx565akm_backlight_init
	testl	%eax, %eax
	js	LBB0_7
LBB0_8:
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_drm_panel_init
	movq	24(%r14), %rax
	movq	%rax, 16(%r14)
	movq	_acx565akm_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	callq	_drm_panel_add
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_12
## %bb.9:
	movl	%eax, %ebx
	cmpq	$0, (%r14)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_acx565akm_backlight_cleanup
LBB0_11:
	movl	%ebx, %r15d
	jmp	LBB0_12
LBB0_4:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_7:
	movl	%eax, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SPI_MODE_3,4,2                 ## @SPI_MODE_3
	.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	"failed to get reset GPIO\n"

L_.str.2:                               ## @.str.2
	.asciz	"panel detection failed\n"

	.comm	_acx565akm_funcs,4,2            ## @acx565akm_funcs
	.no_dead_strip	_acx565akm_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acx565akm_probe
_acx565akm_probe:                       ; @acx565akm_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	x20, 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, x20
	mov	x1, x19
	bl	_spi_set_drvdata
Lloh3:
	adrp	x8, _SPI_MODE_3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_MODE_3@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	str	x20, [x19, #24]
	add	x0, x19, #36
	bl	_mutex_init
Lloh6:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	str	w0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #32]
	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_3:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	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_5:
	mov	x0, x19
	bl	_acx565akm_detect
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_acx565akm_backlight_init
	tbnz	w0, #31, LBB0_13
LBB0_8:
	add	x20, x19, #8
	mov	x0, x20
	bl	_drm_panel_init
	ldr	x8, [x19, #24]
Lloh16:
	adrp	x9, _acx565akm_funcs@GOTPAGE
Lloh17:
	ldr	x9, [x9, _acx565akm_funcs@GOTPAGEOFF]
	stp	x9, x8, [x19, #8]
	mov	x0, x20
	bl	_drm_panel_add
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	w21, #0
	b	LBB0_4
LBB0_10:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_4
LBB0_11:
	mov	x21, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.12:
	mov	x0, x19
	bl	_acx565akm_backlight_cleanup
	b	LBB0_4
LBB0_13:
	mov	x21, x0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SPI_MODE_3,4,2                 ; @SPI_MODE_3
	.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	"failed to get reset GPIO\n"

l_.str.2:                               ; @.str.2
	.asciz	"panel detection failed\n"

	.comm	_acx565akm_funcs,4,2            ; @acx565akm_funcs
	.no_dead_strip	_acx565akm_probe
.subsections_via_symbols
