	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcan4x5x_parse_config
_tcan4x5x_parse_config:                 ## @tcan4x5x_parse_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_devm_gpiod_get
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movl	(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_devm_gpiod_get_optional
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, 16(%r14)
LBB0_4:
	movl	(%rbx), %edi
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_devm_gpiod_get_optional
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	$0, 8(%r14)
LBB0_6:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_devm_regulator_get_optional
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_PTR_ERR
	movl	%eax, %ecx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	cmovnel	%edx, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device-wake"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.1:                               ## @.str.1
	.asciz	"device-wake gpio not defined\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.3:                               ## @.str.3
	.asciz	"device-state"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.4:                               ## @.str.4
	.asciz	"vsup"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcan4x5x_parse_config
_tcan4x5x_parse_config:                 ; @tcan4x5x_parse_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_gpiod_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
Lloh10:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	str	xzr, [x20, #16]
LBB0_4:
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	str	xzr, [x20, #8]
LBB0_6:
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_devm_regulator_get_optional
	str	w0, [x20]
	bl	_PTR_ERR
Lloh22:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmn	w0, w8
	csneg	w0, wzr, w8, ne
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device-wake"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.1:                               ; @.str.1
	.asciz	"device-wake gpio not defined\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.3:                               ; @.str.3
	.asciz	"device-state"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.4:                               ; @.str.4
	.asciz	"vsup"

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