	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_low_power
_set_low_power:                         ## @set_low_power
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_to_i2c_client
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtol
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpl	%r15d, (%r13)
	je	LBB0_2
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	setne	%r14b
	movq	_ADM1021_REG_CONFIG_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%r15d, (%r13)
	movq	_ADM1021_REG_CONFIG_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	$191, %eax
	shll	$6, %r14d
	orl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	callq	_i2c_smbus_write_byte_data
LBB0_2:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM1021_REG_CONFIG_R,4,2       ## @ADM1021_REG_CONFIG_R
	.comm	_ADM1021_REG_CONFIG_W,4,2       ## @ADM1021_REG_CONFIG_W
	.no_dead_strip	_set_low_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_low_power
_set_low_power:                         ; @set_low_power
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	mov	x23, x0
	cmp	x0, #0
	cset	w24, ne
	add	x21, x22, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x22]
	cmp	w8, w24
	b.eq	LBB0_2
; %bb.1:
	cmp	x23, #0
	cset	w23, ne
Lloh0:
	adrp	x8, _ADM1021_REG_CONFIG_R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADM1021_REG_CONFIG_R@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	str	w24, [x22]
Lloh3:
	adrp	x8, _ADM1021_REG_CONFIG_W@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADM1021_REG_CONFIG_W@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w8, #191
	and	w2, w0, w8
	bfi	w2, w23, #6, #1
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
LBB0_2:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM1021_REG_CONFIG_R,4,2       ; @ADM1021_REG_CONFIG_R
	.comm	_ADM1021_REG_CONFIG_W,4,2       ; @ADM1021_REG_CONFIG_W
	.no_dead_strip	_set_low_power
.subsections_via_symbols
