	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_i2c_request            ## -- Begin function flexcop_i2c_request
	.p2align	4, 0x90
_flexcop_i2c_request:                   ## @flexcop_i2c_request
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%ecx, -44(%rbp)
	movl	(%rdi), %esi
	movq	_FC_READ@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	callq	_deb_i2c
	movq	$0, -80(%rbp)
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, -104(%rbp)
	movq	%r12, -88(%rbp)
	movl	(%r14), %esi
	movl	%esi, -92(%rbp)
	cmpq	$0, 8(%r14)
	setne	%al
	testl	%r13d, %r13d
	sete	%cl
	movq	_FC_WRITE@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	cmpq	%r12, (%rdx)
	leaq	-44(%rbp), %r12
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmovneq	%rdx, %r12
	sete	%r15b
	testb	%al, %cl
	cmoveq	%rdx, %r12
	cmovel	%r13d, %r15d
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.1:
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$4, %r15d
	movl	$4, %r13d
	cmovll	%r15d, %r13d
	leal	-1(%r13), %eax
	movl	%eax, -100(%rbp)
	movl	%ebx, -96(%rbp)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	_FC_READ@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movups	-104(%rbp), %xmm0
	movups	-88(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_flexcop_i2c_read4
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %edi
	movups	-104(%rbp), %xmm0
	movups	-88(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r12, %rsi
	callq	_flexcop_i2c_write4
	testl	%eax, %eax
	js	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	leaq	(%r12,%rax,4), %r12
	addl	%r13d, %ebx
	subl	%r13d, %r15d
	jne	LBB0_2
## %bb.7:
	movl	(%r14), %esi
	movl	-44(%rbp), %ebx
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movq	-112(%rbp), %r12                ## 8-byte Reload
LBB0_8:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	_FC_READ@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %rdx
	movq	%r12, (%rsp)
	leaq	L_.str.3(%rip), %rdi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	%r13d, %r9d
	callq	_deb_i2c_dump
	xorl	%eax, %eax
LBB0_9:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port %d %s(%02x): register %02x, size: %d\n"

	.comm	_FC_READ,8,3                    ## @FC_READ
L_.str.1:                               ## @.str.1
	.asciz	"rd"

L_.str.2:                               ## @.str.2
	.asciz	"wr"

	.comm	_FC_WRITE,8,3                   ## @FC_WRITE
L_.str.3:                               ## @.str.3
	.asciz	"port %d %s(%02x): register %02x: %*ph\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_i2c_request            ; -- Begin function flexcop_i2c_request
	.p2align	2
_flexcop_i2c_request:                   ; @flexcop_i2c_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x25, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	str	w3, [sp, #60]
	ldr	w1, [x0]
Lloh0:
	adrp	x27, _FC_READ@GOTPAGE
Lloh1:
	ldr	x27, [x27, _FC_READ@GOTPAGEOFF]
	ldr	x8, [x27]
Lloh2:
	adrp	x26, l_.str.2@PAGE
Lloh3:
	add	x26, x26, l_.str.2@PAGEOFF
Lloh4:
	adrp	x9, l_.str.1@PAGE
Lloh5:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x8, x22
	csel	x2, x9, x26, eq
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x21
	bl	_deb_i2c
	ldr	w24, [x23]
	ldr	x8, [x23, #8]
	cmp	x8, #0
	cset	w8, ne
	cmp	w19, #0
	cset	w9, eq
Lloh8:
	adrp	x10, _FC_WRITE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _FC_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x10, x22
	cset	w10, eq
	ands	w8, w9, w8
	csel	w28, w10, w19, ne
	tst	w8, w10
	add	x8, sp, #60
	csel	x8, x8, x25, ne
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	cbz	w28, LBB0_7
; %bb.1:
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	mov	w25, #4
	mov	x26, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w28, #4
	csel	w19, w28, w25, lt
	sub	w8, w19, #1
	ldr	x9, [x27]
	cmp	x9, x22
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	stp	w20, w8, [sp, #24]
	stp	w21, w24, [sp, #32]
	stp	x22, xzr, [sp, #40]
	add	x1, sp, #24
	mov	x0, x23
	mov	x2, x26
	bl	_flexcop_i2c_read4
	tbz	w0, #31, LBB0_5
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x23, #4]
	stp	w20, w8, [sp, #24]
	stp	w21, w24, [sp, #32]
	stp	x22, xzr, [sp, #40]
	add	x1, sp, #24
	mov	x2, x26
	bl	_flexcop_i2c_write4
	tbnz	w0, #31, LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, w19, sxtw #2
	add	w21, w19, w21
	subs	w28, w28, w19
	b.ne	LBB0_2
; %bb.6:
	ldr	w24, [x23]
	ldr	w21, [sp, #60]
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
Lloh11:
	adrp	x26, l_.str.2@PAGE
Lloh12:
	add	x26, x26, l_.str.2@PAGEOFF
LBB0_7:
	ldr	x8, [x27]
	cmp	x8, x22
Lloh13:
	adrp	x8, l_.str.1@PAGE
Lloh14:
	add	x8, x8, l_.str.1@PAGEOFF
	csel	x2, x8, x26, eq
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x24
	mov	x3, x20
	mov	x4, x21
	mov	x5, x19
	ldr	x6, [sp, #16]                   ; 8-byte Folded Reload
	bl	_deb_i2c_dump
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port %d %s(%02x): register %02x, size: %d\n"

	.comm	_FC_READ,8,3                    ; @FC_READ
l_.str.1:                               ; @.str.1
	.asciz	"rd"

l_.str.2:                               ; @.str.2
	.asciz	"wr"

	.comm	_FC_WRITE,8,3                   ; @FC_WRITE
l_.str.3:                               ; @.str.3
	.asciz	"port %d %s(%02x): register %02x: %*ph\n"

.subsections_via_symbols
