	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_set_gpio_value         ## -- Begin function cx231xx_set_gpio_value
	.p2align	4, 0x90
_cx231xx_set_gpio_value:                ## @cx231xx_set_gpio_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
	cmpl	$32, %esi
	jl	LBB0_1
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %r14d
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movl	$1, %r15d
	shll	%cl, %r15d
	btl	%ecx, %esi
	jb	LBB0_3
## %bb.2:
	orl	%r15d, %esi
	movl	%esi, (%rbx)
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_cx231xx_set_gpio_bit
LBB0_3:
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movl	%r15d, %eax
	notl	%eax
	andl	%edx, %eax
	orl	%r15d, %edx
	testl	%r14d, %r14d
	cmovel	%eax, %edx
	movl	%edx, 4(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx231xx_set_gpio_bit           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_set_gpio_value         ; -- Begin function cx231xx_set_gpio_value
	.p2align	2
_cx231xx_set_gpio_value:                ; @cx231xx_set_gpio_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
	cmp	w1, #32
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ret
LBB0_2:
	mov	x19, x2
	mov	x20, x0
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w21, w9, w1
	tst	w8, w21
	b.ne	LBB0_4
; %bb.3:
	orr	w1, w8, w21
	str	w1, [x20]
	ldr	w2, [x20, #4]
	mov	x0, x20
	bl	_cx231xx_set_gpio_bit
LBB0_4:
	ldp	w1, w8, [x20]
	bic	w9, w8, w21
	orr	w8, w8, w21
	cmp	w19, #0
	csel	w2, w9, w8, eq
	str	w2, [x20, #4]
	mov	x0, x20
	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	_cx231xx_set_gpio_bit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
