	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_interrupt_hpi              ## -- Begin function mmc_interrupt_hpi
	.p2align	4, 0x90
_mmc_interrupt_hpi:                     ## @mmc_interrupt_hpi
	.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
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.2:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mmc_send_status
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	callq	_mmc_hostname
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_16
LBB0_1:
	movl	8(%r14), %edi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_info
	movl	$1, %ebx
	jmp	LBB0_16
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_R1_CURRENT_STATE
                                        ## kill: def $eax killed $eax def $rax
	xorl	%ebx, %ebx
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_16
## %bb.5:
	cmpl	$131, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$132, %eax
	je	LBB0_16
## %bb.7:
	movl	8(%r14), %edi
	callq	_mmc_hostname
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_R1_CURRENT_STATE
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_8:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mmc_send_hpi_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movl	(%r14), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	addq	%rbx, %r15
	leaq	-44(%rbp), %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mmc_send_status
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-44(%rbp), %edi
	callq	_R1_CURRENT_STATE
	cmpl	$128, %eax
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%ebx, %ebx
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: HPI enable bit unset\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Get card status fail\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: HPI cannot be sent. Card state=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_interrupt_hpi              ; -- Begin function mmc_interrupt_hpi
	.p2align	2
_mmc_interrupt_hpi:                     ; @mmc_interrupt_hpi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_3
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_mmc_send_status
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_mmc_hostname
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_9
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_mmc_hostname
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	w20, #1
	b	LBB0_9
LBB0_4:
	ldr	w0, [sp, #12]
	bl	_R1_CURRENT_STATE
	sub	w8, w0, #128
	cmp	w8, #3
	b.lo	LBB0_9
; %bb.5:
	cmp	w0, #131
	b.eq	LBB0_8
; %bb.6:
	cmp	w0, #132
	b.eq	LBB0_9
; %bb.7:
	ldr	w0, [x19, #8]
	bl	_mmc_hostname
	mov	x19, x0
	ldr	w0, [sp, #12]
	bl	_R1_CURRENT_STATE
	mov	x2, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_8:
	add	x1, sp, #12
	mov	x0, x19
	bl	_mmc_send_hpi_cmd
	mov	x20, x0
	cbz	w0, LBB0_10
LBB0_9:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_10:
Lloh9:
	adrp	x22, _jiffies@GOTPAGE
Lloh10:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x20, [x22]
	ldr	w0, [x19]
	bl	_msecs_to_jiffies
	add	x21, x0, x20
Lloh11:
	adrp	x23, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x23, [x23, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x22]
	mov	x1, x21
	bl	_time_after
	ldr	w8, [x23]
	cmp	x0, #0
	csneg	w20, w20, w8, eq
	cbnz	w20, LBB0_9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x19
	bl	_mmc_send_status
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [sp, #12]
	bl	_R1_CURRENT_STATE
	cmp	w0, #128
	b.ne	LBB0_11
; %bb.14:
	mov	w20, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: HPI enable bit unset\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Get card status fail\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: HPI cannot be sent. Card state=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
