	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp_sdc_mlc_cts
_hp_sdc_mlc_cts:                        ## @hp_sdc_mlc_cts
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_down_trylock
	movq	%rax, %rdi
	callq	_BUG_ON
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_down_trylock
	movq	%rax, %rdi
	callq	_BUG_ON
	movq	%r15, %rdi
	callq	_up
	movq	%r14, %rdi
	callq	_up
	movq	%rbx, %rdi
	callq	_down_trylock
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	%rbx, 16(%r12)
	je	LBB0_5
## %bb.2:
	movq	(%r12), %rax
	jmp	LBB0_4
LBB0_3:
	movq	(%r12), %rax
	movq	_HP_SDC_USE_LOOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rax)
	je	LBB0_6
LBB0_4:
	leaq	8(%r12), %rdi
	movq	%rbx, 16(%r12)
	movq	$0, 24(%r12)
	movabsq	$21474836481, %rcx              ## imm = 0x500000001
	movq	%rcx, 8(%r12)
	movq	_HP_SDC_ACT_POSTCMD@GOTPCREL(%rip), %rcx
	movq	_HP_SDC_ACT_DATAIN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_HP_SDC_ACT_SEMAPHORE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movq	_HP_SDC_CMD_READ_USE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	$1, 8(%rax)
	movl	$0, 16(%rax)
	callq	___hp_sdc_enqueue_transaction
LBB0_5:
	movl	$1, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, 16(%r12)
	movq	%rbx, %rdi
	callq	_up
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_HP_SDC_USE_LOOP,4,2            ## @HP_SDC_USE_LOOP
	.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_CMD_READ_USE,4,2        ## @HP_SDC_CMD_READ_USE
	.no_dead_strip	_hp_sdc_mlc_cts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function hp_sdc_mlc_cts
lCPI0_0:
	.long	1                               ; 0x1
	.long	5                               ; 0x5
lCPI0_1:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hp_sdc_mlc_cts:                        ; @hp_sdc_mlc_cts
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	add	x22, x0, #8
	mov	x0, x22
	bl	_down_trylock
	bl	_BUG_ON
	add	x21, x20, #4
	mov	x0, x21
	bl	_down_trylock
	bl	_BUG_ON
	mov	x0, x22
	bl	_up
	mov	x0, x21
	bl	_up
	mov	x0, x20
	bl	_down_trylock
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x19]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
	ldr	w9, [x8, #16]
Lloh0:
	adrp	x10, _HP_SDC_USE_LOOP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HP_SDC_USE_LOOP@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
LBB0_4:
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]!
Lloh5:
	adrp	x9, _HP_SDC_ACT_POSTCMD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HP_SDC_ACT_POSTCMD@GOTPAGEOFF]
Lloh7:
	adrp	x10, _HP_SDC_ACT_DATAIN@GOTPAGE
Lloh8:
	ldr	x10, [x10, _HP_SDC_ACT_DATAIN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh11:
	adrp	x10, _HP_SDC_ACT_SEMAPHORE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HP_SDC_ACT_SEMAPHORE@GOTPAGEOFF]
	stp	x20, xzr, [x19, #8]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8]
Lloh14:
	adrp	x9, _HP_SDC_CMD_READ_USE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HP_SDC_CMD_READ_USE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	str	w9, [x8, #4]
Lloh17:
	adrp	x9, lCPI0_1@PAGE
Lloh18:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	str	d0, [x8, #8]
	str	wzr, [x8, #16]
	mov	x0, x19
	bl	___hp_sdc_enqueue_transaction
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	str	x21, [x19, #16]
	mov	x0, x20
	bl	_up
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HP_SDC_USE_LOOP,4,2            ; @HP_SDC_USE_LOOP
	.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_CMD_READ_USE,4,2        ; @HP_SDC_CMD_READ_USE
	.no_dead_strip	_hp_sdc_mlc_cts
.subsections_via_symbols
