	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idle_state_store
_idle_state_store:                      ## @idle_state_store
	.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	%rcx, %r14
	movq	%rdx, %rbx
	callq	_to_i2c_client
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_mux_priv
	movq	%rax, %r12
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtoint
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movl	-44(%rbp), %eax
	movq	_MUX_IDLE_AS_IS@GOTPCREL(%rip), %rcx
	movq	_MUX_IDLE_DISCONNECT@GOTPCREL(%rip), %rdx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.2:
	cmpl	(%rdx), %eax
	je	LBB0_6
## %bb.3:
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	16(%r12), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_5
LBB0_6:
	movl	(%r15), %edi
	movq	_I2C_LOCK_SEGMENT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_i2c_lock_bus
	movl	8(%r12), %edi
	movl	-44(%rbp), %esi
	callq	_WRITE_ONCE
	cmpq	$0, (%r12)
	jne	LBB0_8
## %bb.7:
	movl	-44(%rbp), %eax
	movq	_MUX_IDLE_DISCONNECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pca954x_deselect_mux
	movl	%eax, %ebx
LBB0_9:
	movl	(%r15), %edi
	movl	(%r13), %esi
	callq	_i2c_unlock_bus
	testl	%ebx, %ebx
	cmovsl	%ebx, %r14d
	movl	%r14d, %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MUX_IDLE_AS_IS,4,2             ## @MUX_IDLE_AS_IS
	.comm	_MUX_IDLE_DISCONNECT,4,2        ## @MUX_IDLE_DISCONNECT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I2C_LOCK_SEGMENT,4,2           ## @I2C_LOCK_SEGMENT
	.no_dead_strip	_idle_state_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idle_state_store
_idle_state_store:                      ; @idle_state_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_i2c_get_clientdata
	mov	x20, x0
	bl	_i2c_mux_priv
	mov	x22, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtoint
	mov	x21, x0
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _MUX_IDLE_AS_IS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MUX_IDLE_AS_IS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x23, _MUX_IDLE_DISCONNECT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MUX_IDLE_DISCONNECT@GOTPAGEOFF]
	ldr	w10, [x23]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_4
; %bb.2:
	tbnz	w8, #31, LBB0_8
; %bb.3:
	ldr	x9, [x22, #16]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_8
LBB0_4:
	ldr	w0, [x20]
Lloh5:
	adrp	x24, _I2C_LOCK_SEGMENT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _I2C_LOCK_SEGMENT@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_i2c_lock_bus
	ldr	w0, [x22, #8]
	ldr	w1, [sp, #12]
	bl	_WRITE_ONCE
	ldr	x8, [x22]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_7
LBB0_6:
	mov	x0, x20
	mov	w1, #0
	bl	_pca954x_deselect_mux
	mov	x21, x0
LBB0_7:
	ldr	w0, [x20]
	ldr	w1, [x24]
	bl	_i2c_unlock_bus
	cmp	w21, #0
	csel	w21, w21, w19, lt
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MUX_IDLE_AS_IS,4,2             ; @MUX_IDLE_AS_IS
	.comm	_MUX_IDLE_DISCONNECT,4,2        ; @MUX_IDLE_DISCONNECT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I2C_LOCK_SEGMENT,4,2           ; @I2C_LOCK_SEGMENT
	.no_dead_strip	_idle_state_store
.subsections_via_symbols
