	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spics_set_value
_spics_set_value:                       ## @spics_set_value
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	callq	_gpiochip_get_data
	movq	%rax, %rbx
	movq	16(%rax), %rdi
	addq	24(%rax), %rdi
	callq	_readl_relaxed
	cmpl	%r15d, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	%r15d, (%rbx)
	movl	4(%rbx), %edx
	movb	8(%rbx), %cl
	shll	%cl, %edx
	notl	%edx
	andl	%edx, %eax
	shll	%cl, %r15d
	orl	%r15d, %eax
LBB0_2:
	movb	12(%rbx), %cl
	btrl	%ecx, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	orl	%eax, %r14d
	movq	16(%rbx), %rsi
	addq	24(%rbx), %rsi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_spics_set_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spics_set_value
_spics_set_value:                       ; @spics_set_value
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_gpiochip_get_data
	mov	x20, x0
	ldp	x9, x8, [x0, #16]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x20]
	cmp	w8, w21
	b.eq	LBB0_2
; %bb.1:
	str	w21, [x20]
	ldp	w8, w9, [x20, #4]
	lsl	w8, w8, w9
	bic	w8, w0, w8
	lsl	w9, w21, w9
	orr	w0, w8, w9
LBB0_2:
	ldr	w8, [x20, #12]
	mov	w9, #1
	lsl	w9, w9, w8
	bic	w9, w0, w9
	lsl	w8, w19, w8
	orr	w0, w9, w8
	ldp	x9, x8, [x20, #16]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel_relaxed
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_spics_set_value
.subsections_via_symbols
