	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_gpio_i2c_end           ## -- Begin function cx231xx_gpio_i2c_end
	.p2align	4, 0x90
_cx231xx_gpio_i2c_end:                  ## @cx231xx_gpio_i2c_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movb	8(%rdi), %al
	movl	(%rdi), %esi
	btsl	%eax, %esi
	movb	12(%rdi), %cl
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%ecx, %esi
	movl	%esi, (%rdi)
	leaq	4(%rdi), %r14
	btsl	%eax, %edx
	notl	%edx
	andl	%edx, 4(%rdi)
	movq	%r14, %rdx
	callq	_cx231xx_set_gpio_bit
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movb	8(%rbx), %al
	movl	(%rbx), %esi
	movl	4(%rbx), %ecx
	btsl	%eax, %ecx
	movb	12(%rbx), %al
	btrl	%eax, %ecx
	movl	%ecx, 4(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_cx231xx_set_gpio_bit
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movb	8(%rbx), %cl
	movb	12(%rbx), %al
	movl	$1, %esi
	shll	%cl, %esi
	btsl	%eax, %esi
	notl	%esi
	andl	(%rbx), %esi
	movl	%esi, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_cx231xx_set_gpio_bit
	testl	%eax, %eax
	jns	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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_gpio_i2c_end           ; -- Begin function cx231xx_gpio_i2c_end
	.p2align	2
_cx231xx_gpio_i2c_end:                  ; @cx231xx_gpio_i2c_end
	.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, x0
	mov	w21, #1
	ldp	w8, w9, [x0, #8]
	lsl	w8, w21, w8
	ldr	w10, [x0]
	orr	w10, w10, w8
	lsl	w9, w21, w9
	orr	w1, w9, w10
	str	w1, [x0]
	mov	x20, x0
	ldr	w10, [x20, #4]!
	orr	w8, w9, w8
	bic	w8, w10, w8
	str	w8, [x20]
	mov	x2, x20
	bl	_cx231xx_set_gpio_bit
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldp	w8, w9, [x19, #8]
	lsl	w8, w21, w8
	ldp	w1, w10, [x19]
	orr	w8, w10, w8
	lsl	w9, w21, w9
	bic	w8, w8, w9
	str	w8, [x19, #4]
	mov	x0, x19
	mov	x2, x20
	bl	_cx231xx_set_gpio_bit
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	w8, #1
	ldp	w9, w10, [x19, #8]
	lsl	w9, w8, w9
	ldr	w11, [x19]
	lsl	w8, w8, w10
	orr	w8, w9, w8
	bic	w1, w11, w8
	str	w1, [x19]
	mov	x0, x19
	mov	x2, x20
	bl	_cx231xx_set_gpio_bit
	tbz	w0, #31, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
