	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serial_in
_serial_in:                             ## @serial_in
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_set_sda_input
	testq	%r14, %r14
	jle	LBB0_4
## %bb.1:
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_sda_clock_in
	movl	(%r12), %ecx
	andl	$1, %eax
	leal	(%rax,%rcx,2), %eax
	xorl	$1, %eax
	movl	%eax, (%r12)
	decq	%rbx
	jne	LBB0_2
	jmp	LBB0_3
LBB0_4:
	movl	(%r12), %eax
LBB0_3:
	addl	%r14d, 4(%r12)
	movslq	%eax, %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trace_fsi_master_gpio_in       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_serial_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serial_in
_serial_in:                             ; @serial_in
	.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
	mov	x20, x0
	bl	_set_sda_input
	cmp	x19, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_sda_clock_in
	ldr	w8, [x21]
	bfi	w0, w8, #1, #31
	eor	w8, w0, #0x1
	str	w8, [x21]
	subs	x22, x22, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	ldr	w8, [x21]
LBB0_4:
	ldr	w9, [x21, #4]
	add	w9, w9, w19
	str	w9, [x21, #4]
	sxtw	x2, w8
	mov	x0, x20
	mov	x1, x19
	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	_trace_fsi_master_gpio_in
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_serial_in
.subsections_via_symbols
