	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hp_sdc_put
LCPI0_0:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hp_sdc_put
	.p2align	4, 0x90
_hp_sdc_put:                            ## @hp_sdc_put
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_hp_sdc@GOTPCREL(%rip), %r13
	leaq	32(%r13), %rdi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	callq	_write_lock
	cmpq	$0, 40(%r13)
	je	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_hp_sdc_status_in8
	cmpq	$0, 40(%r13)
	jne	LBB0_79
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	cmpl	$0, (%r13)
	jns	LBB0_5
## %bb.4:
	movl	$0, (%r13)
LBB0_5:
	leaq	56(%r13), %r12
	movq	%r12, %rdi
	callq	_read_lock_irq
	movl	4(%r13), %eax
	cmpl	(%r13), %eax
	jne	LBB0_7
## %bb.6:
	incl	%eax
	movl	%eax, (%r13)
LBB0_7:
	movq	%r12, %rdi
	callq	_read_unlock_irq
	movl	(%r13), %r14d
	movq	_HP_SDC_QUEUE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jl	LBB0_9
## %bb.8:
	movl	$0, (%r13)
	xorl	%r14d, %r14d
LBB0_9:
	movq	48(%r13), %rcx
	movslq	%r14d, %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_10
## %bb.20:
	cmpq	$0, 64(%r13)
	je	LBB0_22
LBB0_21:
	movq	_HP_SDC_CMD_SET_IM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	8(%r13), %edi
	callq	_hp_sdc_status_out8
	movq	$0, 64(%r13)
	jmp	LBB0_79
LBB0_10:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	incl	%r14d
	movl	%r14d, %r15d
	movq	_HP_SDC_QUEUE_LEN@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$-1, %ecx
	cmpl	%eax, %r15d
	jge	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	callq	_read_lock_irq
	movl	4(%r13), %ebx
	movq	%r12, %rdi
	callq	_read_unlock_irq
	cmpl	%r15d, %ebx
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	48(%r13), %rax
	movslq	%r15d, %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r15d, %ecx
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%ecx, %r15d
	incl	%r15d
	cmpl	(%r13), %r15d
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_11
LBB0_15:
	movl	%r15d, %eax
	jmp	LBB0_19
LBB0_18:
	movl	(%r13), %eax
LBB0_19:
	cmpl	%eax, %r15d
	movl	$-1, %r14d
	cmovnel	%r15d, %r14d
	movl	%r14d, (%r13)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, 64(%r13)
	jne	LBB0_21
LBB0_22:
	cmpl	$-1, %r14d
	je	LBB0_83
## %bb.23:
	movq	48(%r13), %rax
	movslq	%r14d, %rbx
	movq	(%rax,%rbx,8), %rdx
	movslq	(%rdx), %rsi
	movl	4(%rdx), %edi
	cmpl	%edi, %esi
	jge	LBB0_24
## %bb.25:
	movq	8(%rdx), %rcx
	movl	(%rcx,%rsi,4), %r9d
	movslq	16(%rdx), %r8
	cmpl	%edi, %r8d
	jge	LBB0_26
## %bb.28:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leal	1(%rsi), %ebx
	movq	_HP_SDC_ACT_PRECMD@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%r9d, %eax
	je	LBB0_31
## %bb.29:
	cmpl	%ebx, %r8d
	jne	LBB0_30
## %bb.35:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	4(%rcx,%rsi,4), %edi
	movq	%rdx, %r14
	movl	%r9d, %ebx
	callq	_hp_sdc_status_out8
	movl	%ebx, %r9d
	movq	%r14, %r8
	movl	16(%r14), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%r14)
	movq	_HP_SDC_ACT_DURING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	cmpl	(%r15), %ecx
	jne	LBB0_37
## %bb.36:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_68
LBB0_26:
	movq	_HP_SDC_ACT_DEALLOC@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	je	LBB0_24
## %bb.27:
	movq	%rdx, %rdi
	callq	_kfree
	movq	48(%r13), %rax
	movl	(%r13), %r14d
LBB0_24:
	movq	$0, (%rax,%rbx,8)
	incl	%r14d
	xorl	%eax, %eax
	movq	_HP_SDC_QUEUE_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	cmovll	%r14d, %eax
	movl	%eax, (%r13)
LBB0_79:
	cmpq	$0, 40(%r13)
	jne	LBB0_81
## %bb.80:
	leal	1(%r15), %eax
	cmpl	$20, %r15d
	movl	%eax, %r15d
	jl	LBB0_3
LBB0_81:
	cmpl	$0, (%r13)
	js	LBB0_83
## %bb.82:
	addq	$36, %r13
	movq	%r13, %rdi
	callq	_tasklet_schedule
LBB0_83:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_write_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_86
## %bb.84:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	leal	2(%rsi), %ebx
	notl	%eax
	andl	%eax, %r9d
LBB0_31:
	movq	_HP_SDC_ACT_DATAOUT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %eax
	testl	%r9d, %eax
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_40
## %bb.32:
	movslq	%ebx, %rbx
	movl	(%rcx,%rbx,4), %r15d
	incl	%ebx
	movl	%r8d, %esi
	subl	%ebx, %esi
	cmpl	%r15d, %esi
	jge	LBB0_61
## %bb.33:
	movq	%rdi, %r12
	movl	%r9d, %r14d
	movl	(%rcx,%r8,4), %edi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	callq	_hp_sdc_data_out8
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movl	16(%r8), %eax
	incl	%eax
	movl	%eax, 16(%r8)
	subl	-88(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	%r15d, %eax
	jge	LBB0_39
## %bb.34:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_79
LBB0_40:
	movq	_HP_SDC_ACT_DATAREG@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%r9d, %r10d
	je	LBB0_41
## %bb.42:
	movslq	%ebx, %rsi
	movl	(%rcx,%rsi,4), %esi
	cmpl	%r8d, %ebx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_43
## %bb.44:
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movd	%esi, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pand	LCPI0_0(%rip), %xmm0
	leal	1(%r8), %esi
	leaq	4(%rcx,%r8,4), %rax
	movq	16(%r13), %r11
	leaq	4(%r11), %r9
	leaq	8(%r11), %rbx
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm0, %xmm1
	movmskps	%xmm1, %edi
	testb	$8, %dil
	cmovnel	%r8d, %esi
	cmovneq	%r11, %rax
	movl	(%rax), %r8d
	movl	%r8d, -64(%rbp)
	movslq	%esi, %rax
	incl	%esi
	leaq	(%rcx,%rax,4), %rdx
	addq	$4, %rdx
	testb	$4, %dil
	cmovel	%esi, %eax
	cmovneq	%r9, %rdx
	movl	(%rdx), %edx
	movl	%edx, -104(%rbp)                ## 4-byte Spill
	movl	%edx, -60(%rbp)
	movslq	%eax, %rdx
	incl	%eax
	leaq	(%rcx,%rdx,4), %rsi
	addq	$4, %rsi
	testb	$2, %dil
	cmovel	%eax, %edx
	cmovneq	%rbx, %rsi
	movl	(%rsi), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	%eax, -56(%rbp)
	movslq	%edx, %rsi
	incl	%edx
	leaq	(%rcx,%rsi,4), %rax
	addq	$4, %rax
	testb	$1, %dil
	cmovel	%edx, %esi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	leaq	12(%r11), %rcx
	cmovneq	%rcx, %rax
	movl	(%rax), %esi
	movl	%esi, -52(%rbp)
	movl	24(%r13), %edx
	leal	-116(%rdx), %eax
	cmpl	$-4, %eax
	jb	LBB0_46
## %bb.45:
	addl	$-112, %edx
	movl	-64(%rbp,%rdx,4), %edi
	cmpl	(%r11,%rdx,4), %edi
	jne	LBB0_52
LBB0_46:
	xorl	%r15d, %r15d
	cmpl	(%r11), %r8d
	jne	LBB0_60
## %bb.47:
	movl	$1, %r15d
	movl	-104(%rbp), %eax                ## 4-byte Reload
	cmpl	(%r9), %eax
	jne	LBB0_60
## %bb.48:
	movl	$2, %r15d
	movl	-100(%rbp), %eax                ## 4-byte Reload
	cmpl	(%rbx), %eax
	jne	LBB0_60
## %bb.49:
	movl	$3, %r15d
	cmpl	(%rcx), %esi
	jne	LBB0_60
## %bb.50:
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	incl	%edx
	movq	_HP_SDC_ACT_DURING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	andl	%r9d, %eax
	cmpl	%r10d, %eax
	jne	LBB0_58
## %bb.51:
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_57
LBB0_61:
	addl	%ebx, %r15d
	notl	%eax
	andl	%eax, %r9d
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movl	%r15d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_62
LBB0_37:
	movq	_HP_SDC_ACT_DATAOUT@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_79
## %bb.38:
	addl	$2, %eax
	movl	%eax, 16(%r8)
	jmp	LBB0_79
LBB0_39:
	movq	_HP_SDC_ACT_DURING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, %r9d
	andl	%r14d, %eax
	cmpl	(%r12), %eax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_79
	jmp	LBB0_68
LBB0_41:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
LBB0_62:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_63
LBB0_43:
	incl	%ebx
	movl	%esi, %ecx
	andl	$1, %ecx
	btl	$1, %esi
	adcl	%ebx, %ecx
	movl	%esi, %edx
	shrl	$2, %edx
	andl	$1, %edx
	btl	$3, %esi
	adcl	%ecx, %edx
LBB0_59:
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	notl	%r10d
	andl	%r10d, %r9d
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
LBB0_63:
	movq	%r12, %rdi
	callq	_read_lock_irq
	movl	4(%r13), %ebx
	movq	%r12, %rdi
	callq	_read_unlock_irq
	testl	%ebx, %ebx
	jns	LBB0_79
## %bb.64:
	movq	_HP_SDC_ACT_POSTCMD@GOTPCREL(%rip), %rax
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	testl	%r9d, (%rax)
	je	LBB0_65
## %bb.66:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movslq	-88(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	(%rax,%rcx,4), %edi
	movslq	16(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 16(%rbx)
	movq	_HP_SDC_ACT_DATAIN@GOTPCREL(%rip), %rdx
	testl	%r9d, (%rdx)
	je	LBB0_67
## %bb.85:
	movl	4(%rax,%rcx,4), %eax
	movl	%eax, 28(%r13)
	xorl	%eax, %eax
	movl	%edi, -80(%rbp)                 ## 4-byte Spill
	callq	_ktime_get
	movl	%eax, 60(%r13)
	incl	16(%rbx)
	movq	%r12, %rdi
	callq	_write_lock_irq
	movl	%r14d, 4(%r13)
	movq	%r12, %rdi
	callq	_write_unlock_irq
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	callq	_hp_sdc_status_out8
	jmp	LBB0_79
LBB0_60:
	movq	_HP_SDC_CMD_SET_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r15d, %edi
	callq	_hp_sdc_status_out8
	orl	$112, %r15d
	movl	%r15d, 24(%r13)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_79
LBB0_65:
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_68
LBB0_67:
	callq	_hp_sdc_status_out8
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	movq	%rbx, %r8
LBB0_68:
	movq	_HP_SDC_ACT_SEMAPHORE@GOTPCREL(%rip), %rax
	testl	%r9d, (%rax)
	je	LBB0_70
## %bb.69:
	movl	32(%r8), %edi
	movq	%r8, %r14
	movl	%r9d, %ebx
	callq	_up
	movl	%ebx, %r9d
	movq	%r14, %r8
	movq	_HP_SDC_QUEUE_LEN@GOTPCREL(%rip), %r14
	jmp	LBB0_72
LBB0_70:
	movq	_HP_SDC_ACT_CALLBACK@GOTPCREL(%rip), %rax
	testl	%r9d, (%rax)
	movq	_HP_SDC_QUEUE_LEN@GOTPCREL(%rip), %r14
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_73
## %bb.71:
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r8, %rbx
	movl	%r9d, %r12d
	callq	*24(%r8)
	movl	%r12d, %r9d
	movq	%rbx, %r8
LBB0_72:
	movq	-112(%rbp), %rbx                ## 8-byte Reload
LBB0_73:
	movl	16(%r8), %eax
	cmpl	4(%r8), %eax
	jge	LBB0_74
## %bb.77:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rcx), %eax
	movl	%eax, (%r8)
	addl	$2, %ecx
	movl	%ecx, 16(%r8)
	jmp	LBB0_78
LBB0_74:
	movq	_HP_SDC_ACT_DEALLOC@GOTPCREL(%rip), %rax
	testl	%r9d, (%rax)
	je	LBB0_76
## %bb.75:
	movq	%r8, %rdi
	callq	_kfree
LBB0_76:
	movq	48(%r13), %rax
	movq	$0, (%rax,%rbx,8)
LBB0_78:
	movl	(%r13), %eax
	incl	%eax
	xorl	%ecx, %ecx
	cmpl	(%r14), %eax
	cmovll	%eax, %ecx
	movl	%ecx, (%r13)
	jmp	LBB0_79
LBB0_52:
	movl	%esi, %r14d
	movl	%r8d, %ebx
	callq	_hp_sdc_data_out8
	movslq	24(%r13), %rcx
	movl	-512(%rbp,%rcx,4), %edx
	movq	16(%r13), %rax
	movl	%edx, -448(%rax,%rcx,4)
	incl	24(%r13)
	cmpl	(%rax), %ebx
	jne	LBB0_79
## %bb.53:
	movl	-104(%rbp), %ecx                ## 4-byte Reload
	cmpl	4(%rax), %ecx
	jne	LBB0_79
## %bb.54:
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	cmpl	8(%rax), %ecx
	jne	LBB0_79
## %bb.55:
	cmpl	12(%rax), %r14d
	jne	LBB0_79
## %bb.56:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	movq	_HP_SDC_ACT_DURING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	movq	_HP_SDC_ACT_DATAREG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_79
LBB0_57:
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	jmp	LBB0_68
LBB0_58:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, 16(%rax)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_59
LBB0_86:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hp_sdc,72,3                    ## @hp_sdc
	.comm	_HP_SDC_QUEUE_LEN,4,2           ## @HP_SDC_QUEUE_LEN
	.comm	_HP_SDC_CMD_SET_IM,4,2          ## @HP_SDC_CMD_SET_IM
	.comm	_HP_SDC_ACT_DEALLOC,4,2         ## @HP_SDC_ACT_DEALLOC
	.comm	_HP_SDC_ACT_PRECMD,4,2          ## @HP_SDC_ACT_PRECMD
	.comm	_HP_SDC_ACT_DURING,4,2          ## @HP_SDC_ACT_DURING
	.comm	_HP_SDC_ACT_DATAOUT,4,2         ## @HP_SDC_ACT_DATAOUT
	.comm	_HP_SDC_ACT_DATAREG,4,2         ## @HP_SDC_ACT_DATAREG
	.comm	_HP_SDC_CMD_SET_D0,4,2          ## @HP_SDC_CMD_SET_D0
	.comm	_HP_SDC_ACT_POSTCMD,4,2         ## @HP_SDC_ACT_POSTCMD
	.comm	_HP_SDC_ACT_DATAIN,4,2          ## @HP_SDC_ACT_DATAIN
	.comm	_HP_SDC_ACT_SEMAPHORE,4,2       ## @HP_SDC_ACT_SEMAPHORE
	.comm	_HP_SDC_ACT_CALLBACK,4,2        ## @HP_SDC_ACT_CALLBACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hp_sdc_put                     ; -- Begin function hp_sdc_put
	.p2align	2
_hp_sdc_put:                            ; @hp_sdc_put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x21, _hp_sdc@GOTPAGE
Lloh4:
	ldr	x21, [x21, _hp_sdc@GOTPAGEOFF]
	add	x0, x21, #32
	bl	_write_lock
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_hp_sdc_status_in8
	mov	w22, #0
	ldr	x8, [x21, #40]
	cbnz	x8, LBB0_33
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	ldr	w8, [x21]
	tbz	w8, #31, LBB0_5
; %bb.4:
	str	wzr, [x21]
LBB0_5:
	add	x19, x21, #56
	mov	x0, x19
	bl	_read_lock_irq
	ldp	w9, w8, [x21]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	add	w8, w8, #1
	str	w8, [x21]
LBB0_7:
	mov	x0, x19
	bl	_read_unlock_irq
	ldr	w26, [x21]
Lloh5:
	adrp	x23, _HP_SDC_QUEUE_LEN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _HP_SDC_QUEUE_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w26, w8
	b.lt	LBB0_9
; %bb.8:
	mov	w26, #0
	str	wzr, [x21]
LBB0_9:
	ldr	x9, [x21, #48]
	ldr	x9, [x9, w26, sxtw #3]
	cbz	x9, LBB0_12
; %bb.10:
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_21
LBB0_11:
	ldr	w8, [x21, #8]
Lloh7:
	adrp	x9, _HP_SDC_CMD_SET_IM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HP_SDC_CMD_SET_IM@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_hp_sdc_status_out8
	str	xzr, [x21, #64]
	b	LBB0_33
LBB0_12:
	add	w20, w26, #1
	cmp	w20, w8
	b.ge	LBB0_15
LBB0_13:
	add	x19, x21, #56
	mov	x0, x19
	bl	_read_lock_irq
	ldr	w24, [x21, #4]
	mov	x0, x19
	bl	_read_unlock_irq
	cmp	w24, w20
	b.eq	LBB0_16
; %bb.14:
	ldr	x8, [x21, #48]
	ldr	x8, [x8, w20, sxtw #3]
	cbz	x8, LBB0_16
	b	LBB0_19
LBB0_15:
	mov	w20, #-1
LBB0_16:
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.eq	LBB0_18
; %bb.17:
	ldr	w8, [x23]
	cmp	w20, w8
	b.ge	LBB0_15
	b	LBB0_13
LBB0_18:
	mov	x8, x20
	b	LBB0_20
LBB0_19:
	ldr	w8, [x21]
LBB0_20:
	cmp	w20, w8
	csinv	w26, w20, wzr, ne
	str	w26, [x21]
	ldr	x8, [x21, #64]
	cbnz	x8, LBB0_11
LBB0_21:
	cmn	w26, #1
	b.eq	LBB0_36
; %bb.22:
	ldr	x8, [x21, #48]
	sxtw	x24, w26
	ldr	x19, [x8, w26, sxtw #3]
	ldp	w11, w12, [x19]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	cmp	w11, w12
	b.ge	LBB0_31
; %bb.23:
	ldr	x9, [x19, #8]
	ldr	w25, [x9, x11, lsl #2]
	ldrsw	x10, [x19, #16]
	cmp	w10, w12
	b.ge	LBB0_29
; %bb.24:
	add	w27, w11, #1
Lloh10:
	adrp	x20, _HP_SDC_ACT_PRECMD@GOTPAGE
Lloh11:
	ldr	x20, [x20, _HP_SDC_ACT_PRECMD@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w25
	b.eq	LBB0_39
; %bb.25:
	cmp	w10, w27
	b.ne	LBB0_38
; %bb.26:
	ldr	w0, [x9, w27, sxtw #2]
	bl	_hp_sdc_status_out8
	ldr	w8, [x19, #16]
	add	w9, w8, #1
	str	w9, [x19, #16]
Lloh12:
	adrp	x9, _HP_SDC_ACT_DURING@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HP_SDC_ACT_DURING@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w25
	ldr	w10, [x20]
	cmp	w9, w10
	b.eq	LBB0_63
; %bb.27:
Lloh15:
	adrp	x9, _HP_SDC_ACT_DATAOUT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HP_SDC_ACT_DATAOUT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w25
	b.eq	LBB0_33
; %bb.28:
	add	w8, w8, #2
	str	w8, [x19, #16]
	b	LBB0_33
LBB0_29:
Lloh18:
	adrp	x9, _HP_SDC_ACT_DEALLOC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HP_SDC_ACT_DEALLOC@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w25
	b.eq	LBB0_31
; %bb.30:
	mov	x0, x19
	bl	_kfree
	ldr	x8, [x21, #48]
	ldr	w26, [x21]
LBB0_31:
	str	xzr, [x8, x24, lsl #3]
	add	w8, w26, #1
	ldr	w9, [x23]
	cmp	w8, w9
	csinc	w8, wzr, w26, ge
LBB0_32:
	str	w8, [x21]
LBB0_33:
	ldr	x8, [x21, #40]
	cmp	x8, #0
	ccmp	w22, #20, #0, eq
	add	w22, w22, #1
	b.lt	LBB0_3
; %bb.34:
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_36
; %bb.35:
	add	x0, x21, #36
	bl	_tasklet_schedule
LBB0_36:
	add	x0, x21, #32
	bl	_write_unlock
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_78
; %bb.37:
	mov	x0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_38:
	add	w27, w11, #2
	bic	w25, w25, w8
LBB0_39:
Lloh24:
	adrp	x20, _HP_SDC_ACT_DATAOUT@GOTPAGE
Lloh25:
	ldr	x20, [x20, _HP_SDC_ACT_DATAOUT@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w25
	b.eq	LBB0_44
; %bb.40:
	ldr	w28, [x9, w27, sxtw #2]
	add	w27, w27, #1
	sub	w11, w10, w27
	cmp	w11, w28
	b.ge	LBB0_54
; %bb.41:
	ldr	w0, [x9, x10, lsl #2]
	bl	_hp_sdc_data_out8
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	sub	w8, w8, w27
	cmp	w8, w28
	b.lt	LBB0_33
; %bb.42:
Lloh26:
	adrp	x8, _HP_SDC_ACT_DURING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HP_SDC_ACT_DURING@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w8, w8, w25
	ldr	w9, [x20]
LBB0_43:
	cmp	w8, w9
	b.ne	LBB0_33
	b	LBB0_63
LBB0_44:
Lloh29:
	adrp	x8, _HP_SDC_ACT_DATAREG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HP_SDC_ACT_DATAREG@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_57
; %bb.45:
	ldr	w13, [x9, w27, sxtw #2]
	cmp	w27, w10
	b.ne	LBB0_55
; %bb.46:
	add	w11, w10, #1
	add	x12, x9, w11, sxtw #2
	ldr	x11, [x21, #16]
	tst	w13, #0x1
	cinc	w14, w10, ne
	csel	x10, x11, x12, eq
	ldr	w20, [x10]
	add	w10, w14, #1
	add	x12, x9, w10, sxtw #2
	add	x10, x11, #4
	tst	w13, #0x2
	cinc	w14, w14, ne
	csel	x12, x10, x12, eq
	ldr	w17, [x12]
	stp	w20, w17, [sp, #8]
	add	w12, w14, #1
	add	x15, x9, w12, sxtw #2
	add	x12, x11, #8
	tst	w13, #0x4
	cinc	w14, w14, ne
	csel	x15, x12, x15, eq
	ldr	w16, [x15]
	add	w15, w14, #1
	add	x15, x9, w15, sxtw #2
	add	x9, x11, #12
	tst	w13, #0x8
	cinc	w27, w14, ne
	csel	x13, x9, x15, eq
	ldr	w15, [x13]
	stp	w16, w15, [sp, #16]
	ldr	w13, [x21, #24]
	sub	w14, w13, #116
	cmn	w14, #4
	b.lo	LBB0_48
; %bb.47:
	sub	w13, w13, #112
	lsl	x13, x13, #2
	add	x28, sp, #8
	ldr	w0, [x28, x13]
	ldr	w13, [x11, x13]
	cmp	w0, w13
	b.ne	LBB0_73
LBB0_48:
	mov	w28, #0
	ldr	w11, [x11]
	cmp	w20, w11
	b.ne	LBB0_61
; %bb.49:
	ldr	w10, [x10]
	mov	w28, #1
	cmp	w17, w10
	b.ne	LBB0_61
; %bb.50:
	ldr	w10, [x12]
	mov	w28, #2
	cmp	w16, w10
	b.ne	LBB0_61
; %bb.51:
	ldr	w9, [x9]
	mov	w28, #3
	cmp	w15, w9
	b.ne	LBB0_61
; %bb.52:
	add	w27, w27, #1
Lloh32:
	adrp	x9, _HP_SDC_ACT_DURING@GOTPAGE
Lloh33:
	ldr	x9, [x9, _HP_SDC_ACT_DURING@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	and	w9, w9, w25
	cmp	w9, w8
	b.eq	LBB0_63
; %bb.53:
	str	w27, [x19, #16]
	b	LBB0_56
LBB0_54:
	add	w27, w28, w27
	b	LBB0_56
LBB0_55:
	and	w9, w13, #0x1
	ubfx	w10, w13, #1, #1
	add	w9, w27, w9
	add	w9, w9, w10
	ubfx	w10, w13, #2, #1
	ubfx	w11, w13, #3, #1
	add	w9, w9, w10
	add	w9, w9, w11
	add	w27, w9, #1
LBB0_56:
	bic	w25, w25, w8
LBB0_57:
	add	x20, x21, #56
	mov	x0, x20
	bl	_read_lock_irq
	ldr	w28, [x21, #4]
	mov	x0, x20
	bl	_read_unlock_irq
	tbz	w28, #31, LBB0_33
; %bb.58:
Lloh35:
	adrp	x8, _HP_SDC_ACT_POSTCMD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HP_SDC_ACT_POSTCMD@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_63
; %bb.59:
	ldr	x8, [x19, #8]
	ldr	w20, [x8, w27, sxtw #2]
	ldrsw	x9, [x19, #16]
	add	x9, x9, #1
	str	w9, [x19, #16]
Lloh38:
	adrp	x10, _HP_SDC_ACT_DATAIN@GOTPAGE
Lloh39:
	ldr	x10, [x10, _HP_SDC_ACT_DATAIN@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	tst	w10, w25
	b.eq	LBB0_62
; %bb.60:
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x21, #28]
	bl	_ktime_get
	str	w0, [x21, #60]
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	add	x19, x21, #56
	mov	x0, x19
	bl	_write_lock_irq
	str	w26, [x21, #4]
	mov	x0, x19
	bl	_write_unlock_irq
	mov	x0, x20
	bl	_hp_sdc_status_out8
	b	LBB0_33
LBB0_61:
Lloh41:
	adrp	x8, _HP_SDC_CMD_SET_D0@GOTPAGE
Lloh42:
	ldr	x8, [x8, _HP_SDC_CMD_SET_D0@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	add	w0, w8, w28
	bl	_hp_sdc_status_out8
	orr	w8, w28, #0x70
	str	w8, [x21, #24]
	b	LBB0_33
LBB0_62:
	mov	x0, x20
	bl	_hp_sdc_status_out8
LBB0_63:
Lloh44:
	adrp	x8, _HP_SDC_ACT_SEMAPHORE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _HP_SDC_ACT_SEMAPHORE@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_65
; %bb.64:
	ldr	w0, [x19, #32]
	bl	_up
	b	LBB0_67
LBB0_65:
Lloh47:
	adrp	x8, _HP_SDC_ACT_CALLBACK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _HP_SDC_ACT_CALLBACK@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_67
; %bb.66:
	ldr	x8, [x19, #24]
	mov	w0, #0
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	blr	x8
LBB0_67:
	ldr	w8, [x19, #16]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ge	LBB0_69
; %bb.68:
	add	w8, w27, #1
	str	w8, [x19]
	add	w8, w27, #2
	str	w8, [x19, #16]
	b	LBB0_72
LBB0_69:
Lloh50:
	adrp	x8, _HP_SDC_ACT_DEALLOC@GOTPAGE
Lloh51:
	ldr	x8, [x8, _HP_SDC_ACT_DEALLOC@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_71
; %bb.70:
	mov	x0, x19
	bl	_kfree
LBB0_71:
	ldr	x8, [x21, #48]
	str	xzr, [x8, x24, lsl #3]
LBB0_72:
	ldr	w8, [x21]
	add	w9, w8, #1
	ldr	w10, [x23]
	cmp	w9, w10
	csinc	w8, wzr, w8, ge
	b	LBB0_32
LBB0_73:
	mov	x26, x17
	stp	w15, w16, [sp]                  ; 8-byte Folded Spill
	bl	_hp_sdc_data_out8
	ldrsw	x8, [x21, #24]
	lsl	x8, x8, #2
	sub	x9, x8, #448
	ldr	w10, [x28, x9]
	ldr	x8, [x21, #16]
	str	w10, [x8, x9]
	ldr	w9, [x21, #24]
	add	w9, w9, #1
	str	w9, [x21, #24]
	ldr	w9, [x8]
	cmp	w20, w9
	b.ne	LBB0_33
; %bb.74:
	ldr	w9, [x8, #4]
	cmp	w26, w9
	b.ne	LBB0_33
; %bb.75:
	ldr	w9, [x8, #8]
	ldr	w10, [sp, #4]                   ; 4-byte Folded Reload
	cmp	w10, w9
	b.ne	LBB0_33
; %bb.76:
	ldr	w8, [x8, #12]
	ldr	w9, [sp]                        ; 4-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_33
; %bb.77:
	add	w8, w27, #1
	str	w8, [x19, #16]
Lloh53:
	adrp	x8, _HP_SDC_ACT_DURING@GOTPAGE
Lloh54:
	ldr	x8, [x8, _HP_SDC_ACT_DURING@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	and	w8, w8, w25
Lloh56:
	adrp	x9, _HP_SDC_ACT_DATAREG@GOTPAGE
Lloh57:
	ldr	x9, [x9, _HP_SDC_ACT_DATAREG@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	b	LBB0_43
LBB0_78:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_hp_sdc,72,3                    ; @hp_sdc
	.comm	_HP_SDC_QUEUE_LEN,4,2           ; @HP_SDC_QUEUE_LEN
	.comm	_HP_SDC_CMD_SET_IM,4,2          ; @HP_SDC_CMD_SET_IM
	.comm	_HP_SDC_ACT_DEALLOC,4,2         ; @HP_SDC_ACT_DEALLOC
	.comm	_HP_SDC_ACT_PRECMD,4,2          ; @HP_SDC_ACT_PRECMD
	.comm	_HP_SDC_ACT_DURING,4,2          ; @HP_SDC_ACT_DURING
	.comm	_HP_SDC_ACT_DATAOUT,4,2         ; @HP_SDC_ACT_DATAOUT
	.comm	_HP_SDC_ACT_DATAREG,4,2         ; @HP_SDC_ACT_DATAREG
	.comm	_HP_SDC_CMD_SET_D0,4,2          ; @HP_SDC_CMD_SET_D0
	.comm	_HP_SDC_ACT_POSTCMD,4,2         ; @HP_SDC_ACT_POSTCMD
	.comm	_HP_SDC_ACT_DATAIN,4,2          ; @HP_SDC_ACT_DATAIN
	.comm	_HP_SDC_ACT_SEMAPHORE,4,2       ; @HP_SDC_ACT_SEMAPHORE
	.comm	_HP_SDC_ACT_CALLBACK,4,2        ; @HP_SDC_ACT_CALLBACK
.subsections_via_symbols
