	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_i2c_low_completion
_smu_i2c_low_completion:                ## @smu_i2c_low_completion
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %esi
	movq	(%rdi), %rdx
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	8(%rdi), %r8d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	cmpq	$0, (%r14)
	js	LBB0_7
## %bb.1:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.2:
	cmpl	$0, (%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	je	LBB0_3
## %bb.4:
	xorl	%esi, %esi
	cmpl	$127, %eax
	jg	LBB0_7
	jmp	LBB0_5
LBB0_6:
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.10:
	xorl	%esi, %esi
	cmpl	$0, (%rbx)
	jne	LBB0_5
	jmp	LBB0_11
LBB0_3:
	testl	%eax, %eax
	je	LBB0_11
LBB0_7:
	movq	16(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movl	$1, %esi
	cmpq	$2, %rax
	jl	LBB0_5
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	_smu@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	%rbx, 8(%rax)
	setne	%dil
	callq	_BUG_ON
	movq	_smu_irq_inited@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.9:
	movq	(%r14), %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$5, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_smu_i2c_complete_command       ## TAILCALL
LBB0_12:
	movl	$5, %edi
	callq	_mdelay
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_smu_i2c_retry                  ## TAILCALL
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	8(%rbx), %rax
	movq	%rax, 16(%r14)
	movl	$8, 8(%r14)
	movq	%rax, 24(%r14)
	movl	$1, 32(%r14)
	movl	$0, (%rax)
	movl	$1, (%rbx)
	movq	$20, 16(%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_smu_queue_cmd                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMU: i2c compl. stage=%d status=%x pdata[0]=%x rlen: %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"SMU: i2c failure, starting timer...\n"

	.comm	_smu,8,3                        ## @smu
	.comm	_smu_irq_inited,4,2             ## @smu_irq_inited
	.comm	_jiffies,8,3                    ## @jiffies
L_.str.2:                               ## @.str.2
	.asciz	"SMU: going to stage 1\n"

	.no_dead_strip	_smu_i2c_low_completion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_i2c_low_completion
_smu_i2c_low_completion:                ; @smu_i2c_low_completion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x9, [x1, #8]
	ldr	w10, [x1]
	ldr	w9, [x9]
	ldr	w11, [x0, #8]
	stp	x9, x11, [sp, #16]
	stp	x10, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
	ldr	x8, [x20]
	tbnz	x8, #63, LBB0_8
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w9, [x19]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cbz	w9, LBB0_7
; %bb.3:
	cmp	w8, #127
	b.le	LBB0_6
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_8
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_14
LBB0_6:
	mov	w1, #0
	b	LBB0_12
LBB0_7:
	cbz	w8, LBB0_14
LBB0_8:
	ldr	x8, [x19, #16]
	sub	x9, x8, #1
	str	x9, [x19, #16]
	cmp	x8, #2
	b.lt	LBB0_11
; %bb.9:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTK
Lloh4:
	adrp	x20, _smu@GOTPAGE
Lloh5:
	ldr	x20, [x20, _smu@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	cmp	x8, x19
	cset	w0, ne
	bl	_BUG_ON
Lloh6:
	adrp	x8, _smu_irq_inited@GOTPAGE
Lloh7:
	ldr	x8, [x8, _smu_irq_inited@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_13
; %bb.10:
	ldr	x19, [x20]
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	x20, [x8]
	mov	w0, #5
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_mod_timer
LBB0_11:
	mov	w1, #1
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_smu_i2c_complete_command
LBB0_13:
	mov	w0, #5
	bl	_mdelay
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_smu_i2c_retry
LBB0_14:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINTK
	ldr	x8, [x19, #8]
	mov	w9, #8
	str	w9, [x20, #8]
	stp	x8, x8, [x20, #16]
	mov	w9, #1
	str	w9, [x20, #32]
	str	wzr, [x8]
	str	w9, [x19]
	mov	w8, #20
	str	x8, [x19, #16]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_smu_queue_cmd
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMU: i2c compl. stage=%d status=%x pdata[0]=%x rlen: %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"SMU: i2c failure, starting timer...\n"

	.comm	_smu,8,3                        ; @smu
	.comm	_smu_irq_inited,4,2             ; @smu_irq_inited
	.comm	_jiffies,8,3                    ; @jiffies
l_.str.2:                               ; @.str.2
	.asciz	"SMU: going to stage 1\n"

	.no_dead_strip	_smu_i2c_low_completion
.subsections_via_symbols
