	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp_sdc_mlc_in
_hp_sdc_mlc_in:                         ## @hp_sdc_mlc_in
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r15
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_down_trylock
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.4:
	movq	_HIL_PKT_CMD@GOTPCREL(%rip), %rax
	movq	_HIL_PKT_ADDR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_HIL_ERR_INT@GOTPCREL(%rip), %rax
	movq	_HIL_PKT_DATA_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	andl	8(%rbx), %ecx
	orl	(%rax), %ecx
	movq	(%rbx), %rax
	movl	%ecx, (%rax)
	movl	$14, 12(%rbx)
LBB0_5:
	movq	%r14, %rdi
	callq	_up
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-40(%rbp), %rdi
	callq	_do_gettimeofday
	movq	_USEC_PER_SEC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	-32(%rbp), %rcx
	movslq	32(%rbx), %rdx
	subq	%rdx, %rcx
	imulq	%rax, %rcx
	addq	-40(%rbp), %rcx
	movq	%rcx, -40(%rbp)
	subq	40(%rbx), %rcx
	movl	$2, %eax
	cmpq	16(%rbx), %rcx
	jle	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_up
	movl	$1, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_HIL_ERR_INT,4,2                ## @HIL_ERR_INT
	.comm	_HIL_PKT_CMD,4,2                ## @HIL_PKT_CMD
	.comm	_HIL_PKT_ADDR_MASK,4,2          ## @HIL_PKT_ADDR_MASK
	.comm	_HIL_PKT_DATA_MASK,4,2          ## @HIL_PKT_DATA_MASK
	.comm	_USEC_PER_SEC,4,2               ## @USEC_PER_SEC
	.no_dead_strip	_hp_sdc_mlc_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp_sdc_mlc_in
_hp_sdc_mlc_in:                         ; @hp_sdc_mlc_in
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x21, [x0, #48]
	add	x19, x0, #24
	mov	x0, x19
	bl	_down_trylock
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _HIL_ERR_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIL_ERR_INT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
Lloh3:
	adrp	x10, _HIL_PKT_CMD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HIL_PKT_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _HIL_PKT_ADDR_MASK@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HIL_PKT_ADDR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh9:
	adrp	x11, _HIL_PKT_DATA_MASK@GOTPAGE
Lloh10:
	ldr	x11, [x11, _HIL_PKT_DATA_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w10, w10, w11
	and	w9, w10, w9
	orr	w8, w9, w8
	ldr	x9, [x20]
	str	w8, [x9]
	mov	w8, #14
	str	w8, [x20, #12]
LBB0_3:
	mov	x0, x19
	bl	_up
	mov	w0, #0
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x0, sp
	bl	_do_gettimeofday
Lloh12:
	adrp	x8, _USEC_PER_SEC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USEC_PER_SEC@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	ldrsw	x9, [sp, #8]
	ldrsw	x10, [x20, #32]
	sub	x9, x9, x10
	ldr	x10, [sp]
	madd	x8, x9, x8, x10
	str	x8, [sp]
	ldr	x9, [x20, #40]
	ldr	x10, [x20, #16]
	sub	x8, x8, x9
	cmp	x8, x10
	b.le	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_up
	mov	w0, #1
	b	LBB0_4
LBB0_7:
	mov	w0, #2
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HIL_ERR_INT,4,2                ; @HIL_ERR_INT
	.comm	_HIL_PKT_CMD,4,2                ; @HIL_PKT_CMD
	.comm	_HIL_PKT_ADDR_MASK,4,2          ; @HIL_PKT_ADDR_MASK
	.comm	_HIL_PKT_DATA_MASK,4,2          ; @HIL_PKT_DATA_MASK
	.comm	_USEC_PER_SEC,4,2               ; @USEC_PER_SEC
	.no_dead_strip	_hp_sdc_mlc_in
.subsections_via_symbols
