	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si476x_core_i2c_xfer           ## -- Begin function si476x_core_i2c_xfer
	.p2align	4, 0x90
_si476x_core_i2c_xfer:                  ## @si476x_core_i2c_xfer
	.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
	movq	%rdi, %r14
	movq	_SI476X_I2C_SEND@GOTPCREL(%rip), %rax
	movl	(%rdi), %edi
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_i2c_master_send
	jmp	LBB0_3
LBB0_2:
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_i2c_master_recv
LBB0_3:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movl	$0, _si476x_core_i2c_xfer.io_errors_count(%rip)
	jmp	LBB0_7
LBB0_4:
	movl	_si476x_core_i2c_xfer.io_errors_count(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, _si476x_core_i2c_xfer.io_errors_count(%rip)
	movq	_SI476X_MAX_IO_ERRORS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_si476x_core_pronounce_dead
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_si476x_core_i2c_xfer.io_errors_count,4,2 ## @si476x_core_i2c_xfer.io_errors_count
	.comm	_SI476X_I2C_SEND,4,2            ## @SI476X_I2C_SEND
	.comm	_SI476X_MAX_IO_ERRORS,4,2       ## @SI476X_MAX_IO_ERRORS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si476x_core_i2c_xfer           ; -- Begin function si476x_core_i2c_xfer
	.p2align	2
_si476x_core_i2c_xfer:                  ; @si476x_core_i2c_xfer
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _SI476X_I2C_SEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SI476X_I2C_SEND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w0, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	x1, x2
	mov	x2, x3
	bl	_i2c_master_send
	b	LBB0_3
LBB0_2:
	mov	x1, x2
	mov	x2, x3
	bl	_i2c_master_recv
LBB0_3:
	adrp	x8, _si476x_core_i2c_xfer.io_errors_count@PAGE
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.4:
	str	wzr, [x8, _si476x_core_i2c_xfer.io_errors_count@PAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w9, [x8, _si476x_core_i2c_xfer.io_errors_count@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x8, _si476x_core_i2c_xfer.io_errors_count@PAGEOFF]
Lloh3:
	adrp	x8, _SI476X_MAX_IO_ERRORS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SI476X_MAX_IO_ERRORS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_si476x_core_pronounce_dead
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_si476x_core_i2c_xfer.io_errors_count,4,2 ; @si476x_core_i2c_xfer.io_errors_count
	.comm	_SI476X_I2C_SEND,4,2            ; @SI476X_I2C_SEND
	.comm	_SI476X_MAX_IO_ERRORS,4,2       ; @SI476X_MAX_IO_ERRORS
.subsections_via_symbols
