	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hilse_take_idd
_hilse_take_idd:                        ## @hilse_take_idd
	.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	(%rdi), %r14
	movl	(%r14), %r10d
	movq	_HIL_PKT_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%r10d, %esi
	je	LBB0_1
LBB0_19:
	decl	8(%rdi)
	movl	$-1, %eax
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_HIL_PKT_ADDR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_HIL_PKT_DATA_MASK@GOTPCREL(%rip), %r8
	movl	(%r8), %r9d
	movq	_HIL_CMD_IDD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	movl	$2, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %rdx
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r14,%rdx,4), %eax
	movl	%eax, %ebx
	xorl	%r10d, %ebx
	testl	%ecx, %ebx
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	andl	%esi, %ebx
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	%r9d, %eax
	cmpl	%r11d, %eax
	je	LBB0_5
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$16, %rdx
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14,%rdx,4), %ebx
	movl	%ebx, %eax
	xorl	%r10d, %eax
	testl	%ecx, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	andl	%esi, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	andl	%r9d, %ebx
	cmpl	%r11d, %ebx
	jne	LBB0_14
	jmp	LBB0_6
LBB0_5:
	decq	%rdx
LBB0_6:
	incq	%rdx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$16, %rdx
	je	LBB0_8
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, (%r14,%rdx,4)
	leaq	1(%rdx), %rdx
	je	LBB0_7
	jmp	LBB0_19
LBB0_8:
	movq	16(%rdi), %rdx
	andl	%r10d, %r9d
	movl	%r9d, (%rdx)
	movl	(%r8), %esi
	movl	4(%r14), %ecx
	andl	%esi, %ecx
	movl	%ecx, 4(%rdx)
	movl	8(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 8(%rdx)
	movl	12(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 12(%rdx)
	movl	16(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 16(%rdx)
	movl	20(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 20(%rdx)
	movl	24(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 24(%rdx)
	movl	28(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 28(%rdx)
	movl	32(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 32(%rdx)
	movl	36(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 36(%rdx)
	movl	40(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 40(%rdx)
	movl	44(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 44(%rdx)
	movl	48(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 48(%rdx)
	movl	52(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 52(%rdx)
	movl	56(%r14), %eax
	andl	%esi, %eax
	movl	%eax, 56(%rdx)
	andl	60(%r14), %esi
	movl	%esi, 60(%rdx)
	movq	_HIL_IDD_HEADER_RSC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.9:
	movq	_HILSEN_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
LBB0_15:
	movq	_HIL_IDD_HEADER_EXD@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.17:
	movq	_HILSEN_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	$4, %eax
	jmp	LBB0_20
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.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	_HIL_CMD_IDD,4,2                ## @HIL_CMD_IDD
	.comm	_HIL_IDD_HEADER_RSC,4,2         ## @HIL_IDD_HEADER_RSC
	.comm	_HILSEN_NEXT,4,2                ## @HILSEN_NEXT
	.comm	_HIL_IDD_HEADER_EXD,4,2         ## @HIL_IDD_HEADER_EXD
	.comm	_HILSEN_DOWN,4,2                ## @HILSEN_DOWN
	.no_dead_strip	_hilse_take_idd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hilse_take_idd
_hilse_take_idd:                        ; @hilse_take_idd
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _HIL_PKT_CMD@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HIL_PKT_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x10]
	tst	w12, w9
	b.ne	LBB0_7
; %bb.1:
	mov	x13, #0
Lloh3:
	adrp	x11, _HIL_PKT_ADDR_MASK@GOTPAGE
Lloh4:
	ldr	x11, [x11, _HIL_PKT_ADDR_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x10, _HIL_PKT_DATA_MASK@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HIL_PKT_DATA_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w14, [x11]
	ldr	w11, [x10]
Lloh8:
	adrp	x15, _HIL_CMD_IDD@GOTPAGE
Lloh9:
	ldr	x15, [x15, _HIL_CMD_IDD@GOTPAGEOFF]
Lloh10:
	ldr	w15, [x15]
	add	x16, x8, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w17, [x16, x13]
	eor	w1, w17, w9
	and	w1, w1, w14
	and	w2, w17, w12
	and	w17, w11, w17
	cmp	w1, #0
	ccmp	w2, #0, #4, eq
	ccmp	w17, w15, #0, ne
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x13, x13, #4
	cmp	x13, #60
	b.ne	LBB0_2
	b	LBB0_7
LBB0_4:
	add	x12, x13, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x12, #64
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w13, [x8, x12]
	add	x12, x12, #4
	cbz	w13, LBB0_5
LBB0_7:
	ldr	w8, [x0, #8]
	sub	w8, w8, #1
	str	w8, [x0, #8]
	mov	w0, #-1
	ret
LBB0_8:
	ldr	x12, [x0, #16]
	and	w9, w11, w9
	str	w9, [x12]
	ldr	w9, [x8, #4]
	ldr	w10, [x10]
	and	w9, w10, w9
	str	w9, [x12, #4]
	ldr	w11, [x8, #8]
	and	w11, w10, w11
	str	w11, [x12, #8]
	ldr	w11, [x8, #12]
	and	w11, w10, w11
	str	w11, [x12, #12]
	ldr	w11, [x8, #16]
	and	w11, w10, w11
	str	w11, [x12, #16]
	ldr	w11, [x8, #20]
	and	w11, w10, w11
	str	w11, [x12, #20]
	ldr	w11, [x8, #24]
	and	w11, w10, w11
	str	w11, [x12, #24]
	ldr	w11, [x8, #28]
	and	w11, w10, w11
	str	w11, [x12, #28]
	ldr	w11, [x8, #32]
	and	w11, w10, w11
	str	w11, [x12, #32]
	ldr	w11, [x8, #36]
	and	w11, w10, w11
	str	w11, [x12, #36]
	ldr	w11, [x8, #40]
	and	w11, w10, w11
	str	w11, [x12, #40]
	ldr	w11, [x8, #44]
	and	w11, w10, w11
	str	w11, [x12, #44]
	ldr	w11, [x8, #48]
	and	w11, w10, w11
	str	w11, [x12, #48]
	ldr	w11, [x8, #52]
	and	w11, w10, w11
	str	w11, [x12, #52]
	ldr	w11, [x8, #56]
	and	w11, w10, w11
	str	w11, [x12, #56]
	ldr	w8, [x8, #60]
	and	w8, w10, w8
	str	w8, [x12, #60]
Lloh11:
	adrp	x8, _HIL_IDD_HEADER_RSC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HIL_IDD_HEADER_RSC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_10
; %bb.9:
Lloh14:
	adrp	x8, _HILSEN_NEXT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HILSEN_NEXT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ret
LBB0_10:
Lloh17:
	adrp	x8, _HIL_IDD_HEADER_EXD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HIL_IDD_HEADER_EXD@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_12
; %bb.11:
Lloh20:
	adrp	x8, _HILSEN_DOWN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HILSEN_DOWN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w0, w8, #0x4
	ret
LBB0_12:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.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	_HIL_CMD_IDD,4,2                ; @HIL_CMD_IDD
	.comm	_HIL_IDD_HEADER_RSC,4,2         ; @HIL_IDD_HEADER_RSC
	.comm	_HILSEN_NEXT,4,2                ; @HILSEN_NEXT
	.comm	_HIL_IDD_HEADER_EXD,4,2         ; @HIL_IDD_HEADER_EXD
	.comm	_HILSEN_DOWN,4,2                ; @HILSEN_DOWN
	.no_dead_strip	_hilse_take_idd
.subsections_via_symbols
