	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stu300_send_address
_stu300_send_address:                   ## @stu300_send_address
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rsi
	movl	(%r14), %eax
	movl	4(%r14), %ebx
	leal	(%rbx,%rbx), %ecx
	shrl	$7, %ebx
	andl	$6, %ebx
	orl	$240, %ebx
	testl	%eax, (%rsi)
	cmovel	%ecx, %ebx
	movq	_I2C_DR_D_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movl	%edx, %r15d
	movq	%rdi, %r12
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	orl	$1, %ebx
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	8(%r12), %rdi
	callq	_dev_dbg
LBB0_6:
	movq	_I2C_DR@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	movl	%ebx, %edi
	callq	_stu300_wr8
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.7:
	movq	_STU300_EVENT_9@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stu300_await_event
	movq	_I2C_DR_D_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	4(%r14), %edi
	movl	%eax, %ebx
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	callq	_stu300_wr8
	testl	%ebx, %ebx
	jne	LBB0_11
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	movq	8(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
LBB0_10:
	movq	_STU300_EVENT_6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stu300_await_event
	movl	%eax, %ebx
	movq	_I2C_CR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%r12), %rdi
	callq	_stu300_r8
	movq	_I2C_CR_PERIPHERAL_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edi
	callq	_stu300_wr8
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_TEN,4,2                  ## @I2C_M_TEN
	.comm	_I2C_DR_D_MASK,4,2              ## @I2C_DR_D_MASK
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read resend\n"

L_.str.1:                               ## @.str.1
	.asciz	"write resend\n"

	.comm	_I2C_DR,8,3                     ## @I2C_DR
	.comm	_STU300_EVENT_9,4,2             ## @STU300_EVENT_9
L_.str.2:                               ## @.str.2
	.asciz	"await event 6\n"

	.comm	_STU300_EVENT_6,4,2             ## @STU300_EVENT_6
	.comm	_I2C_CR,8,3                     ## @I2C_CR
	.comm	_I2C_CR_PERIPHERAL_ENABLE,4,2   ## @I2C_CR_PERIPHERAL_ENABLE
	.no_dead_strip	_stu300_send_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stu300_send_address
_stu300_send_address:                   ; @stu300_send_address
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _I2C_M_TEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _I2C_M_TEN@GOTPAGEOFF]
	ldr	w8, [x24]
	ldp	w9, w10, [x1]
	lsl	w11, w10, #1
	lsr	w10, w10, #7
	and	w10, w10, #0x6
	orr	w10, w10, #0xf0
	tst	w8, w9
	csel	w8, w11, w10, eq
Lloh2:
	adrp	x23, _I2C_DR_D_MASK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _I2C_DR_D_MASK@GOTPAGEOFF]
	ldr	w10, [x23]
	and	w22, w8, w10
Lloh4:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.1:
	orr	w22, w22, #0x1
	cbz	w20, LBB0_6
; %bb.2:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	cbz	w20, LBB0_6
; %bb.4:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_dev_dbg
LBB0_6:
	ldr	x8, [x19]
Lloh11:
	adrp	x25, _I2C_DR@GOTPAGE
Lloh12:
	ldr	x25, [x25, _I2C_DR@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x22
	bl	_stu300_wr8
	ldr	w8, [x21]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
Lloh13:
	adrp	x8, _STU300_EVENT_9@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STU300_EVENT_9@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stu300_await_event
	mov	x22, x0
	ldr	w8, [x21, #4]
	ldr	w9, [x23]
	and	w0, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_stu300_wr8
	cbz	w22, LBB0_9
; %bb.8:
	mov	x0, x22
	b	LBB0_12
LBB0_9:
	cbz	w20, LBB0_11
; %bb.10:
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_11:
Lloh18:
	adrp	x8, _STU300_EVENT_6@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STU300_EVENT_6@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stu300_await_event
	mov	x20, x0
	ldr	x8, [x19]
Lloh21:
	adrp	x21, _I2C_CR@GOTPAGE
Lloh22:
	ldr	x21, [x21, _I2C_CR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_stu300_r8
Lloh23:
	adrp	x8, _I2C_CR_PERIPHERAL_ENABLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _I2C_CR_PERIPHERAL_ENABLE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_stu300_wr8
	mov	x0, x20
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_TEN,4,2                  ; @I2C_M_TEN
	.comm	_I2C_DR_D_MASK,4,2              ; @I2C_DR_D_MASK
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read resend\n"

l_.str.1:                               ; @.str.1
	.asciz	"write resend\n"

	.comm	_I2C_DR,8,3                     ; @I2C_DR
	.comm	_STU300_EVENT_9,4,2             ; @STU300_EVENT_9
l_.str.2:                               ; @.str.2
	.asciz	"await event 6\n"

	.comm	_STU300_EVENT_6,4,2             ; @STU300_EVENT_6
	.comm	_I2C_CR,8,3                     ; @I2C_CR
	.comm	_I2C_CR_PERIPHERAL_ENABLE,4,2   ; @I2C_CR_PERIPHERAL_ENABLE
	.no_dead_strip	_stu300_send_address
.subsections_via_symbols
