	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efm32_i2c_recv_next_byte
_efm32_i2c_recv_next_byte:              ## @efm32_i2c_recv_next_byte
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	24(%rdi), %r15
	movq	_REG_RXDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_efm32_i2c_read32
	shlq	$4, %r14
	movq	8(%r15,%r14), %rcx
	movq	8(%rbx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	movq	%rdx, 8(%rbx)
	movslq	(%r15,%r14), %rax
	cmpq	%rax, %rdx
	jae	LBB0_1
## %bb.3:
	movq	_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_CMD_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efm32_i2c_write32              ## TAILCALL
LBB0_1:
	movq	$0, 8(%rbx)
	incq	(%rbx)
	movq	_REG_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_REG_CMD_NACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_efm32_i2c_write32
	movslq	16(%rbx), %rax
	cmpq	%rax, (%rbx)
	jae	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efm32_i2c_send_next_msg        ## TAILCALL
LBB0_4:
	movl	(%r14), %esi
	movq	_REG_CMD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_efm32_i2c_write32
	addq	$20, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_RXDATA,4,2                 ## @REG_RXDATA
	.comm	_REG_CMD,4,2                    ## @REG_CMD
	.comm	_REG_CMD_NACK,4,2               ## @REG_CMD_NACK
	.comm	_REG_CMD_STOP,4,2               ## @REG_CMD_STOP
	.comm	_REG_CMD_ACK,4,2                ## @REG_CMD_ACK
	.no_dead_strip	_efm32_i2c_recv_next_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efm32_i2c_recv_next_byte
_efm32_i2c_recv_next_byte:              ; @efm32_i2c_recv_next_byte
	.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
	ldr	x20, [x0, #24]
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _REG_RXDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_RXDATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_efm32_i2c_read32
	add	x8, x20, x21, lsl #4
	ldr	x9, [x8, #8]
	ldr	x10, [x19, #8]
	str	w0, [x9, x10, lsl #2]
	add	x9, x10, #1
	str	x9, [x19, #8]
	ldrsw	x8, [x8]
	cmp	x9, x8
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _REG_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _REG_CMD_ACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_CMD_ACK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, 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	_efm32_i2c_write32
LBB0_2:
	ldr	x8, [x19]
	add	x8, x8, #1
	stp	x8, xzr, [x19]
Lloh9:
	adrp	x20, _REG_CMD@GOTPAGE
Lloh10:
	ldr	x20, [x20, _REG_CMD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _REG_CMD_NACK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_CMD_NACK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_efm32_i2c_write32
	ldr	x8, [x19]
	ldrsw	x9, [x19, #16]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.3:
	mov	x0, 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	_efm32_i2c_send_next_msg
LBB0_4:
	ldr	w1, [x20]
Lloh14:
	adrp	x8, _REG_CMD_STOP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_CMD_STOP@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_efm32_i2c_write32
	add	x0, x19, #20
	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	_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_RXDATA,4,2                 ; @REG_RXDATA
	.comm	_REG_CMD,4,2                    ; @REG_CMD
	.comm	_REG_CMD_NACK,4,2               ; @REG_CMD_NACK
	.comm	_REG_CMD_STOP,4,2               ; @REG_CMD_STOP
	.comm	_REG_CMD_ACK,4,2                ; @REG_CMD_ACK
	.no_dead_strip	_efm32_i2c_recv_next_byte
.subsections_via_symbols
