	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_repeated_start
_i2c_repeated_start:                    ## @i2c_repeated_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_device_get_softc
	movq	%rax, %rbx
	movq	_I2C_STATUS_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_i2c_read_reg
	movq	_I2CSR_MBB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_I2C_CONTROL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2CCR_RSTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_i2c_flag_set
	movl	$1, %edi
	callq	_DELAY
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_i2c_write_reg
	movq	_I2C_DATA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_i2c_write_reg
	movl	%r14d, (%rbx)
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	%r14d, %ecx
	callq	_DEVICE_DEBUGF
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wait_for_xfer
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_error_handler              ## TAILCALL
LBB0_1:
	movq	_IIC_EBUSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_STATUS_REG,4,2             ## @I2C_STATUS_REG
	.comm	_I2CSR_MBB,4,2                  ## @I2CSR_MBB
	.comm	_IIC_EBUSERR,4,2                ## @IIC_EBUSERR
	.comm	_I2C_CONTROL_REG,4,2            ## @I2C_CONTROL_REG
	.comm	_I2CCR_RSTA,4,2                 ## @I2CCR_RSTA
	.comm	_I2C_DATA_REG,4,2               ## @I2C_DATA_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rstart 0x%02x\n"

	.no_dead_strip	_i2c_repeated_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_repeated_start
_i2c_repeated_start:                    ; @i2c_repeated_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_device_get_softc
	mov	x19, x0
Lloh0:
	adrp	x21, _I2C_STATUS_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I2C_STATUS_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_i2c_read_reg
Lloh2:
	adrp	x8, _I2CSR_MBB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2CSR_MBB@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _I2C_CONTROL_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_CONTROL_REG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _I2CCR_RSTA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2CCR_RSTA@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_flag_set
	mov	w0, #1
	bl	_DELAY
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_i2c_write_reg
Lloh11:
	adrp	x8, _I2C_DATA_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I2C_DATA_REG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_i2c_write_reg
	str	w20, [x19]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	mov	x3, x20
	bl	_DEVICE_DEBUGF
	mov	x0, x19
	mov	w1, #1
	bl	_wait_for_xfer
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_i2c_error_handler
LBB0_2:
Lloh16:
	adrp	x8, _IIC_EBUSERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IIC_EBUSERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_STATUS_REG,4,2             ; @I2C_STATUS_REG
	.comm	_I2CSR_MBB,4,2                  ; @I2CSR_MBB
	.comm	_IIC_EBUSERR,4,2                ; @IIC_EBUSERR
	.comm	_I2C_CONTROL_REG,4,2            ; @I2C_CONTROL_REG
	.comm	_I2CCR_RSTA,4,2                 ; @I2CCR_RSTA
	.comm	_I2C_DATA_REG,4,2               ; @I2C_DATA_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rstart 0x%02x\n"

	.no_dead_strip	_i2c_repeated_start
.subsections_via_symbols
