	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_master_start               ## -- Begin function i2c_master_start
	.p2align	4, 0x90
_i2c_master_start:                      ## @i2c_master_start
	.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
	movl	%edi, %r14d
	movq	_TWINT@GOTPCREL(%rip), %rdx
	movq	_TWEN@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movb	(%rdx), %cl
	movl	$1, %ebx
	btsl	%ecx, %eax
	movq	_TWSTA@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movq	_TWCR@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	xorl	%eax, %eax
	callq	_i2c_delay
	movq	_TW_STATUS@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_TW_START@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_TW_REP_START@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	_TWDR@GOTPCREL(%rip), %rax
	movb	(%r12), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%r14d, (%rax)
	movq	_TWINT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movl	%edx, (%r13)
	xorl	%eax, %eax
	callq	_i2c_delay
	movq	(%r15), %rax
	movq	_TW_MT_SLA_ACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_TW_MR_SLA_ACK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWINT,4,2                      ## @TWINT
	.comm	_TWEN,4,2                       ## @TWEN
	.comm	_TWSTA,4,2                      ## @TWSTA
	.comm	_TWCR,4,2                       ## @TWCR
	.comm	_TW_STATUS,8,3                  ## @TW_STATUS
	.comm	_TW_START,8,3                   ## @TW_START
	.comm	_TW_REP_START,8,3               ## @TW_REP_START
	.comm	_TWDR,4,2                       ## @TWDR
	.comm	_TW_MT_SLA_ACK,8,3              ## @TW_MT_SLA_ACK
	.comm	_TW_MR_SLA_ACK,8,3              ## @TW_MR_SLA_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_master_start               ; -- Begin function i2c_master_start
	.p2align	2
_i2c_master_start:                      ; @i2c_master_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _TWINT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TWINT@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	w19, #1
Lloh2:
	adrp	x22, _TWEN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TWEN@GOTPAGEOFF]
	lsl	w8, w19, w8
	ldr	w9, [x22]
	lsl	w9, w19, w9
	orr	w8, w9, w8
Lloh4:
	adrp	x9, _TWSTA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TWSTA@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	orr	w8, w8, w9
Lloh7:
	adrp	x23, _TWCR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _TWCR@GOTPAGEOFF]
	str	w8, [x23]
	bl	_i2c_delay
Lloh9:
	adrp	x24, _TW_STATUS@GOTPAGE
Lloh10:
	ldr	x24, [x24, _TW_STATUS@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh11:
	adrp	x9, _TW_START@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TW_START@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _TW_REP_START@GOTPAGE
Lloh15:
	ldr	x10, [x10, _TW_REP_START@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh17:
	adrp	x8, _TWDR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TWDR@GOTPAGEOFF]
Lloh19:
	str	w20, [x8]
	ldr	w8, [x21]
	lsl	w8, w19, w8
	ldr	w9, [x22]
	lsl	w9, w19, w9
	orr	w8, w9, w8
	str	w8, [x23]
	bl	_i2c_delay
	ldr	x8, [x24]
Lloh20:
	adrp	x9, _TW_MT_SLA_ACK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TW_MT_SLA_ACK@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh23:
	adrp	x9, _TW_MR_SLA_ACK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TW_MR_SLA_ACK@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w19, ne
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TWINT,4,2                      ; @TWINT
	.comm	_TWEN,4,2                       ; @TWEN
	.comm	_TWSTA,4,2                      ; @TWSTA
	.comm	_TWCR,4,2                       ; @TWCR
	.comm	_TW_STATUS,8,3                  ; @TW_STATUS
	.comm	_TW_START,8,3                   ; @TW_START
	.comm	_TW_REP_START,8,3               ; @TW_REP_START
	.comm	_TWDR,4,2                       ; @TWDR
	.comm	_TW_MT_SLA_ACK,8,3              ; @TW_MT_SLA_ACK
	.comm	_TW_MR_SLA_ACK,8,3              ; @TW_MR_SLA_ACK
.subsections_via_symbols
