	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tea5764_i2c_write
_tea5764_i2c_write:                     ## @tea5764_i2c_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	$48, -48(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	movl	4(%rax), %eax
	movl	%eax, -32(%rbp)
	movzbl	8(%rdi), %eax
	movl	%eax, -96(%rbp)
	movl	28(%rdi), %edi
	callq	___cpu_to_be16
	movq	%rax, -56(%rbp)
	movl	24(%rbx), %edi
	callq	___cpu_to_be16
	movq	%rax, -64(%rbp)
	movl	20(%rbx), %edi
	callq	___cpu_to_be16
	movq	%rax, -72(%rbp)
	movl	16(%rbx), %edi
	callq	___cpu_to_be16
	movq	%rax, -80(%rbp)
	movl	12(%rbx), %edi
	callq	___cpu_to_be16
	movq	%rax, -88(%rbp)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movl	%eax, %ecx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	cmpl	$1, %ecx
	cmovel	%edx, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$88, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_tea5764_i2c_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tea5764_i2c_write
_tea5764_i2c_write:                     ; @tea5764_i2c_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #48
	str	w8, [sp, #48]
	mov	x8, sp
	str	x8, [sp, #56]
	ldr	x8, [x0]
	ldr	w8, [x8, #4]
	str	w8, [sp, #64]
	ldrb	w8, [x0, #8]
	str	w8, [sp]
	ldr	w0, [x0, #28]
	bl	___cpu_to_be16
	str	x0, [sp, #40]
	ldr	w0, [x19, #24]
	bl	___cpu_to_be16
	str	x0, [sp, #32]
	ldr	w0, [x19, #20]
	bl	___cpu_to_be16
	str	x0, [sp, #24]
	ldr	w0, [x19, #16]
	bl	___cpu_to_be16
	str	x0, [sp, #16]
	ldr	w0, [x19, #12]
	bl	___cpu_to_be16
	str	x0, [sp, #8]
	ldr	x8, [x19]
	ldr	w0, [x8]
	add	x1, sp, #48
	mov	w2, #1
	bl	_i2c_transfer
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #1
	csneg	w0, wzr, w8, eq
	ldur	x8, [x29, #-24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_tea5764_i2c_write
.subsections_via_symbols
