	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goodix_get_gpio_config
_goodix_get_gpio_config:                ## @goodix_get_gpio_config
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	24(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_14
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_14
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_GOODIX_GPIO_INT_NAME@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_GPIOD_IN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.12:
	movq	%r15, 8(%rbx)
	movq	_GOODIX_GPIO_RST_NAME@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
LBB0_10:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_14
## %bb.11:
	movl	(%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_dev_dbg
	jmp	LBB0_14
LBB0_13:
	movq	%r15, (%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AVDD28"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get AVDD28 regulator: %d\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"Failed to get VDDIO regulator: %d\n"

	.comm	_GOODIX_GPIO_INT_NAME,4,2       ## @GOODIX_GPIO_INT_NAME
	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.4:                               ## @.str.4
	.asciz	"Failed to get %s GPIO: %d\n"

	.comm	_GOODIX_GPIO_RST_NAME,4,2       ## @GOODIX_GPIO_RST_NAME
	.no_dead_strip	_goodix_get_gpio_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goodix_get_gpio_config
_goodix_get_gpio_config:                ; @goodix_get_gpio_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x19, [x0, #32]
	cbz	x19, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	x0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x21, #24]
	bl	_PTR_ERR
	mov	x20, x0
Lloh2:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	x0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.6:
	ldr	x0, [x21, #16]
	bl	_PTR_ERR
	mov	x20, x0
Lloh12:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.7:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh17:
	adrp	x22, _GOODIX_GPIO_INT_NAME@GOTPAGE
Lloh18:
	ldr	x22, [x22, _GOODIX_GPIO_INT_NAME@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh19:
	adrp	x24, _GPIOD_IN@GOTPAGE
Lloh20:
	ldr	x24, [x24, _GPIOD_IN@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
Lloh21:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.12:
	ldr	w2, [x22]
	b	LBB0_16
LBB0_13:
	str	x20, [x21, #8]
Lloh24:
	adrp	x23, _GOODIX_GPIO_RST_NAME@GOTPAGE
Lloh25:
	ldr	x23, [x23, _GOODIX_GPIO_RST_NAME@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.14:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x20, x0
Lloh26:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.15:
	ldr	w2, [x23]
LBB0_16:
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_dev_dbg
	b	LBB0_9
LBB0_17:
	mov	w20, #0
	str	x22, [x21]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AVDD28"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get AVDD28 regulator: %d\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"Failed to get VDDIO regulator: %d\n"

	.comm	_GOODIX_GPIO_INT_NAME,4,2       ; @GOODIX_GPIO_INT_NAME
	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.4:                               ; @.str.4
	.asciz	"Failed to get %s GPIO: %d\n"

	.comm	_GOODIX_GPIO_RST_NAME,4,2       ; @GOODIX_GPIO_RST_NAME
	.no_dead_strip	_goodix_get_gpio_config
.subsections_via_symbols
