	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_store_attr
_axp20x_store_attr:                     ## @axp20x_store_attr
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dev_get_drvdata
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movb	$0, -61(%rbp)
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$19, %edx
	callq	_strncpy
	movq	%r14, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpb	$10, -1(%rax,%r14)
	jne	LBB0_3
## %bb.2:
	movb	$0, -81(%rbp,%rax)
LBB0_3:
	leaq	-80(%rbp), %rdi
	leaq	-84(%rbp), %rdx
	movl	$10, %esi
	callq	_kstrtouint
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.4:
	movq	56(%r13), %rdi
	movl	-84(%rbp), %eax
	subq	%rax, %rdi
	callq	_abs
	xorl	%ebx, %ebx
	cmpl	%r15d, %eax
	jae	LBB0_6
## %bb.5:
	movl	48(%r13), %ebx
	movl	%eax, %r15d
LBB0_6:
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:
	movq	40(%r13), %rdi
	movl	-84(%rbp), %eax
	subq	%rax, %rdi
	callq	_abs
	cmpl	%r15d, %eax
	jae	LBB0_9
## %bb.8:
	movl	32(%r13), %ebx
	movl	%eax, %r15d
LBB0_9:
	testl	%eax, %eax
	je	LBB0_15
## %bb.10:
	movq	24(%r13), %rdi
	movl	-84(%rbp), %eax
	subq	%rax, %rdi
	callq	_abs
	cmpl	%r15d, %eax
	jae	LBB0_12
## %bb.11:
	movl	16(%r13), %ebx
	movl	%eax, %r15d
LBB0_12:
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	8(%r13), %rdi
	movl	-84(%rbp), %eax
	subq	%rax, %rdi
	callq	_abs
	cmpl	%r15d, %eax
	jae	LBB0_15
## %bb.14:
	movl	(%r13), %ebx
LBB0_15:
	bsfl	%r12d, %eax
	xorl	%r14d, %r14d
	cmpl	$1, %r12d
	movl	$0, %ecx
	sbbl	%ecx, %ecx
	orb	%al, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_AXP20X_PEK_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_17:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r14d
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_AXP20X_PEK_KEY,4,2             ## @AXP20X_PEK_KEY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_axp20x_store_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_store_attr
_axp20x_store_attr:                     ; @axp20x_store_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_dev_get_drvdata
	mov	x21, x0
Lloh3:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	strb	wzr, [sp, #23]
	add	x25, sp, #4
	add	x0, sp, #4
	mov	x1, x23
	mov	w2, #19
	bl	_strncpy
	add	x0, sp, #4
	bl	_strlen
	cbz	x0, LBB0_3
; %bb.1:
	sub	x8, x0, #1
	ldrb	w9, [x25, x8]
	cmp	w9, #10
	b.ne	LBB0_3
; %bb.2:
	add	x9, sp, #4
	strb	wzr, [x9, x8]
LBB0_3:
	add	x0, sp, #4
	mov	x2, sp
	mov	w1, #10
	bl	_kstrtouint
	cbnz	w0, LBB0_18
; %bb.4:
	ldr	x8, [x22, #56]
	ldr	w9, [sp]
	sub	x0, x8, x9
	bl	_abs
	cmp	w0, w24
	b.hs	LBB0_6
; %bb.5:
	ldr	w23, [x22, #48]
	mov	x24, x0
	cbnz	w0, LBB0_7
	b	LBB0_15
LBB0_6:
	mov	w23, #0
	cbz	w0, LBB0_15
LBB0_7:
	ldr	x8, [x22, #40]
	ldr	w9, [sp]
	sub	x0, x8, x9
	bl	_abs
	cmp	w0, w24
	b.hs	LBB0_9
; %bb.8:
	ldr	w23, [x22, #32]
	mov	x24, x0
LBB0_9:
	cbz	w0, LBB0_15
; %bb.10:
	ldr	x8, [x22, #24]
	ldr	w9, [sp]
	sub	x0, x8, x9
	bl	_abs
	cmp	w0, w24
	b.hs	LBB0_12
; %bb.11:
	ldr	w23, [x22, #16]
	mov	x24, x0
LBB0_12:
	cbz	w0, LBB0_15
; %bb.13:
	ldr	x8, [x22, #8]
	ldr	w9, [sp]
	sub	x0, x8, x9
	bl	_abs
	cmp	w0, w24
	b.hs	LBB0_15
; %bb.14:
	ldr	w23, [x22]
LBB0_15:
	rbit	w8, w20
	clz	w8, w8
	cmp	w20, #0
	csinv	w8, w8, wzr, ne
	lsl	w3, w23, w8
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _AXP20X_PEK_KEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AXP20X_PEK_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_regmap_update_bits
	cbz	w0, LBB0_17
; %bb.16:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_17:
	mov	x0, x19
LBB0_18:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_AXP20X_PEK_KEY,4,2             ; @AXP20X_PEK_KEY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_axp20x_store_attr
.subsections_via_symbols
