	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c0_transmit                  ## -- Begin function i2c0_transmit
	.p2align	4, 0x90
_i2c0_transmit:                         ## @i2c0_transmit
	.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
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_i2c0_start
	movq	_SERCOM0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rdx,4), %esi
	movl	%esi, 16(%rax)
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %rbx
	jne	LBB0_3
## %bb.8:
	xorl	%eax, %eax
	callq	_i2c0_stop
	movl	$1, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SERCOM0,8,3                    ## @SERCOM0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c0_transmit                  ; -- Begin function i2c0_transmit
	.p2align	2
_i2c0_transmit:                         ; @i2c0_transmit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x2, LBB0_8
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	bl	_i2c0_start
Lloh0:
	adrp	x8, _SERCOM0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SERCOM0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x20]
	str	w10, [x8, #16]
	cbz	x9, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x8]
	cbnz	x10, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #4
	subs	x19, x19, #1
	b.ne	LBB0_2
; %bb.5:
	bl	_i2c0_stop
	mov	w0, #1
	b	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_6
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_7
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SERCOM0,8,3                    ; @SERCOM0
.subsections_via_symbols
