	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kempld_i2c_xfer
_kempld_i2c_xfer:                       ## @kempld_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
	pushq	%rax
	.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, -48(%rbp)                 ## 8-byte Spill
	callq	_i2c_get_adapdata
	movq	%rax, %r12
	movq	32(%rax), %r15
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	addq	%rdi, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r12)
	movq	$0, 16(%r12)
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, (%r12)
	movq	_STATE_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_kempld_get_mutex
	movq	%r12, %rdi
	callq	_kempld_i2c_process
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kempld_release_mutex
	movq	8(%r12), %rax
	movq	_STATE_DONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_STATE_ERROR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r14), %rax
	testl	%ebx, %ebx
	cmoveq	%rax, %r13
	movl	$5, %edi
	movl	$15, %esi
	callq	_usleep_range
	movq	(%r14), %rdi
	jmp	LBB0_1
LBB0_6:
	movq	_STATE_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	cmpq	%rcx, %rax
	cmovel	-48(%rbp), %ebx                 ## 4-byte Folded Reload
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_STATE_INIT,8,3                 ## @STATE_INIT
	.comm	_STATE_DONE,8,3                 ## @STATE_DONE
	.comm	_STATE_ERROR,8,3                ## @STATE_ERROR
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_kempld_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kempld_i2c_xfer
_kempld_i2c_xfer:                       ; @kempld_i2c_xfer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x23, x1
	bl	_i2c_get_adapdata
	mov	x20, x0
	ldr	x21, [x0, #32]
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x0, [x24]
Lloh2:
	adrp	x25, _HZ@GOTPAGE
Lloh3:
	ldr	x25, [x25, _HZ@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x22, x8, x0
	str	x23, [x20, #24]
	str	w19, [x20]
Lloh4:
	adrp	x8, _STATE_INIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STATE_INIT@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	stp	x8, xzr, [x20, #8]
	mov	x1, x22
	bl	_time_before
Lloh7:
	adrp	x26, _STATE_ERROR@GOTPAGE
Lloh8:
	ldr	x26, [x26, _STATE_ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
Lloh9:
	adrp	x27, _STATE_DONE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _STATE_DONE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_kempld_get_mutex
	mov	x0, x20
	bl	_kempld_i2c_process
	mov	x23, x0
	mov	x0, x21
	bl	_kempld_release_mutex
	ldr	x8, [x20, #8]
	ldr	x9, [x27]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	add	x8, x9, x8
	cmp	w23, #0
	csel	x22, x8, x22, eq
	mov	w0, #5
	mov	w1, #15
	bl	_usleep_range
	ldr	x0, [x24]
	mov	x1, x22
	bl	_time_before
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	x8, [x26]
	str	x8, [x20, #8]
Lloh11:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	cmp	x8, x9
	csel	w0, w19, w23, eq
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_STATE_INIT,8,3                 ; @STATE_INIT
	.comm	_STATE_DONE,8,3                 ; @STATE_DONE
	.comm	_STATE_ERROR,8,3                ; @STATE_ERROR
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_kempld_i2c_xfer
.subsections_via_symbols
