	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function geni_i2c_abort_xfer
_geni_i2c_abort_xfer:                   ## @geni_i2c_abort_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
	movq	%rdi, %r14
	movq	_ABORT_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	20(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_GENI_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_geni_i2c_err
	movq	$0, 24(%r14)
	movq	%r14, %rdi
	callq	_geni_se_abort_m_cmd
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	leaq	16(%r14), %r15
	movq	_SE_GENI_M_IRQ_STATUS@GOTPCREL(%rip), %r12
	movq	_M_CMD_ABORT_EN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wait_for_completion_timeout
	movq	%rax, %rbx
	movq	(%r12), %rdi
	addq	8(%r14), %rdi
	callq	_readl_relaxed
	andl	(%r13), %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_3:
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ABORT_TIMEOUT,8,3              ## @ABORT_TIMEOUT
	.comm	_GENI_TIMEOUT,4,2               ## @GENI_TIMEOUT
	.comm	_SE_GENI_M_IRQ_STATUS,8,3       ## @SE_GENI_M_IRQ_STATUS
	.comm	_M_CMD_ABORT_EN,4,2             ## @M_CMD_ABORT_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout abort_m_cmd\n"

	.no_dead_strip	_geni_i2c_abort_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geni_i2c_abort_xfer
_geni_i2c_abort_xfer:                   ; @geni_i2c_abort_xfer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ABORT_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABORT_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	add	x21, x0, #20
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _GENI_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GENI_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_geni_i2c_err
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_geni_se_abort_m_cmd
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	add	x21, x19, #16
Lloh6:
	adrp	x22, _SE_GENI_M_IRQ_STATUS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SE_GENI_M_IRQ_STATUS@GOTPAGEOFF]
Lloh8:
	adrp	x23, _M_CMD_ABORT_EN@GOTPAGE
Lloh9:
	ldr	x23, [x23, _M_CMD_ABORT_EN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_wait_for_completion_timeout
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x23]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	x20, #0, #4, eq
	b.ne	LBB0_1
; %bb.2:
	cbz	w8, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ABORT_TIMEOUT,8,3              ; @ABORT_TIMEOUT
	.comm	_GENI_TIMEOUT,4,2               ; @GENI_TIMEOUT
	.comm	_SE_GENI_M_IRQ_STATUS,8,3       ; @SE_GENI_M_IRQ_STATUS
	.comm	_M_CMD_ABORT_EN,4,2             ; @M_CMD_ABORT_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout abort_m_cmd\n"

	.no_dead_strip	_geni_i2c_abort_xfer
.subsections_via_symbols
