	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_master_write               ## -- Begin function i2c_master_write
	.p2align	4, 0x90
_i2c_master_write:                      ## @i2c_master_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TWDR@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_TWINT@GOTPCREL(%rip), %rax
	movq	_TWEN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_TWCR@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	xorl	%eax, %eax
	callq	_i2c_delay
	movq	_TW_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_TW_MT_DATA_ACK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	setne	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWDR,4,2                       ## @TWDR
	.comm	_TWINT,4,2                      ## @TWINT
	.comm	_TWEN,4,2                       ## @TWEN
	.comm	_TWCR,4,2                       ## @TWCR
	.comm	_TW_STATUS,8,3                  ## @TW_STATUS
	.comm	_TW_MT_DATA_ACK,8,3             ## @TW_MT_DATA_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_master_write               ; -- Begin function i2c_master_write
	.p2align	2
_i2c_master_write:                      ; @i2c_master_write
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _TWDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWDR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TWINT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TWINT@GOTPAGEOFF]
Lloh4:
	str	w0, [x8]
Lloh5:
	ldr	w8, [x9]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh6:
	adrp	x10, _TWEN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TWEN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _TWCR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TWCR@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	bl	_i2c_delay
Lloh12:
	adrp	x8, _TW_STATUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TW_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _TW_MT_DATA_ACK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TW_MT_DATA_ACK@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TWDR,4,2                       ; @TWDR
	.comm	_TWINT,4,2                      ; @TWINT
	.comm	_TWEN,4,2                       ; @TWEN
	.comm	_TWCR,4,2                       ; @TWCR
	.comm	_TW_STATUS,8,3                  ; @TW_STATUS
	.comm	_TW_MT_DATA_ACK,8,3             ; @TW_MT_DATA_ACK
.subsections_via_symbols
