	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nmk_i2c_xfer
_nmk_i2c_xfer:                          ## @nmk_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	callq	_i2c_get_adapdata
	movq	%rax, %r12
	movq	8(%rax), %rdi
	callq	_pm_runtime_get_sync
	movq	%r12, %rdi
	callq	_setup_i2c_controller
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.1:
	leal	-1(%rbx), %eax
	cltq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	12(%r15), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	movl	%eax, 32(%r12)
	movl	-4(%r14), %eax
	movl	%eax, 28(%r12)
	movl	-8(%r14), %eax
	movl	%eax, 24(%r12)
	xorl	%eax, %eax
	cmpq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	setge	%al
	movl	%eax, (%r12)
	movq	$0, 16(%r12)
	movl	-12(%r14), %esi
	movq	%r12, %rdi
	callq	_nmk_i2c_xfer_one
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	addq	$16, %r14
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_3
	jmp	LBB0_12
LBB0_4:
	movq	%rbx, %r13
	movq	%r12, %rdi
	callq	_setup_i2c_controller
	leaq	12(%r15), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movl	%eax, 32(%r12)
	movl	-4(%rbx), %eax
	movl	%eax, 28(%r12)
	movl	-8(%rbx), %eax
	movl	%eax, 24(%r12)
	xorl	%eax, %eax
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	setge	%al
	movl	%eax, (%r12)
	movq	$0, 16(%r12)
	movl	-12(%rbx), %esi
	movq	%r12, %rdi
	callq	_nmk_i2c_xfer_one
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	addq	$16, %rbx
	cmpq	%r14, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_11
LBB0_7:
	movq	%r12, %rdi
	callq	_setup_i2c_controller
	addq	$12, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movl	%eax, 32(%r12)
	movl	-4(%r15), %eax
	movl	%eax, 28(%r12)
	movl	-8(%r15), %eax
	movl	%eax, 24(%r12)
	xorl	%eax, %eax
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	setge	%al
	movl	%eax, (%r12)
	movq	$0, 16(%r12)
	movl	-12(%r15), %esi
	movq	%r12, %rdi
	callq	_nmk_i2c_xfer_one
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	addq	$16, %r15
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
LBB0_11:
	movq	%r13, %rbx
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %ebx
LBB0_12:
	movq	8(%r12), %rdi
	callq	_pm_runtime_put_sync
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nmk_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nmk_i2c_xfer
_nmk_i2c_xfer:                          ; @nmk_i2c_xfer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_i2c_get_adapdata
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_pm_runtime_get_sync
	mov	x0, x20
	bl	_setup_i2c_controller
	subs	w8, w19, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x24, #0
	sxtw	x22, w8
	mov	x25, x21
	mov	w23, w19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25, #12]
	str	w8, [x20, #32]
	ldur	d0, [x25, #4]
	str	d0, [x20, #24]
	cmp	x24, x22
	cset	w8, ge
	str	w8, [x20]
	str	xzr, [x20, #16]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_nmk_i2c_xfer_one
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	add	x25, x25, #16
	cmp	x23, x24
	b.ne	LBB0_2
	b	LBB0_11
LBB0_4:
	mov	x0, x20
	bl	_setup_i2c_controller
	mov	x24, #0
	mov	x25, x21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25, #12]
	str	w8, [x20, #32]
	ldur	d0, [x25, #4]
	str	d0, [x20, #24]
	cmp	x24, x22
	cset	w8, ge
	str	w8, [x20]
	str	xzr, [x20, #16]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_nmk_i2c_xfer_one
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	add	x25, x25, #16
	cmp	x23, x24
	b.ne	LBB0_5
	b	LBB0_11
LBB0_7:
	mov	x0, x20
	bl	_setup_i2c_controller
	mov	x24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #12]
	str	w8, [x20, #32]
	ldur	d0, [x21, #4]
	str	d0, [x20, #24]
	cmp	x24, x22
	cset	w8, ge
	str	w8, [x20]
	str	xzr, [x20, #16]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_nmk_i2c_xfer_one
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	add	x21, x21, #16
	cmp	x23, x24
	b.ne	LBB0_8
	b	LBB0_11
LBB0_10:
	mov	x19, x0
LBB0_11:
	ldr	x0, [x20, #8]
	bl	_pm_runtime_put_sync
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nmk_i2c_xfer
.subsections_via_symbols
