	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32f7_i2c_reload
_stm32f7_i2c_reload:                    ## @stm32f7_i2c_reload
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_STM32F7_I2C_MAX_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rax, 16(%r14)
LBB0_2:
	movq	_STM32F7_I2C_CR2@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movq	_STM32F7_I2C_CR2_NBYTES_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	16(%r14), %rdi
	movq	_STM32F7_I2C_MAX_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdi
	jle	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	_STM32F7_I2C_CR2_NBYTES
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_4:
	movq	_STM32F7_I2C_CR2_RELOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	%ebx, %r15d
	andl	%eax, %r15d
	callq	_STM32F7_I2C_CR2_NBYTES
	movl	%eax, %ebx
LBB0_5:
	orl	%r15d, %ebx
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32F7_I2C_MAX_LEN,8,3        ## @STM32F7_I2C_MAX_LEN
	.comm	_STM32F7_I2C_CR2,8,3            ## @STM32F7_I2C_CR2
	.comm	_STM32F7_I2C_CR2_NBYTES_MASK,4,2 ## @STM32F7_I2C_CR2_NBYTES_MASK
	.comm	_STM32F7_I2C_CR2_RELOAD,4,2     ## @STM32F7_I2C_CR2_RELOAD
	.no_dead_strip	_stm32f7_i2c_reload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32f7_i2c_reload
_stm32f7_i2c_reload:                    ; @stm32f7_i2c_reload
	.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	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x21, _STM32F7_I2C_MAX_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STM32F7_I2C_MAX_LEN@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x19, #16]
	sub	x8, x9, x8
	str	x8, [x19, #16]
LBB0_2:
	ldr	x8, [x19]
Lloh2:
	adrp	x22, _STM32F7_I2C_CR2@GOTPAGE
Lloh3:
	ldr	x22, [x22, _STM32F7_I2C_CR2@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh4:
	adrp	x8, _STM32F7_I2C_CR2_NBYTES_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STM32F7_I2C_CR2_NBYTES_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w20, w0, w8
	ldr	x0, [x19, #16]
	ldr	x8, [x21]
	cmp	x0, x8
	b.le	LBB0_4
; %bb.3:
	mov	x0, x8
	bl	_STM32F7_I2C_CR2_NBYTES
	mov	x21, x0
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _STM32F7_I2C_CR2_RELOAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STM32F7_I2C_CR2_RELOAD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w21, w20, w8
	bl	_STM32F7_I2C_CR2_NBYTES
	mov	x20, x0
LBB0_5:
	orr	w0, w21, w20
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, 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
	b	_writel_relaxed
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32F7_I2C_MAX_LEN,8,3        ; @STM32F7_I2C_MAX_LEN
	.comm	_STM32F7_I2C_CR2,8,3            ; @STM32F7_I2C_CR2
	.comm	_STM32F7_I2C_CR2_NBYTES_MASK,4,2 ; @STM32F7_I2C_CR2_NBYTES_MASK
	.comm	_STM32F7_I2C_CR2_RELOAD,4,2     ; @STM32F7_I2C_CR2_RELOAD
	.no_dead_strip	_stm32f7_i2c_reload
.subsections_via_symbols
