	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adreq_decode_and_validate_header
_adreq_decode_and_validate_header:      ## @adreq_decode_and_validate_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_ADIST_BYTEORDER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	jmp	LBB0_3
LBB0_2:
	movq	%rax, (%rbx)
	movl	20(%rbx), %edi
	callq	_bswap64
	movl	%eax, 20(%rbx)
	movq	8(%rbx), %rdi
	callq	_bswap32
	movq	%rax, 8(%rbx)
LBB0_3:
	movq	_ADIST_BUF_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.4:
	movq	_EX_PROTOCOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_pjdlog_exitx
LBB0_5:
	movl	16(%rbx), %edx
	leal	-128(%rdx), %eax
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.6:
	movl	$25, %ecx
	btl	%eax, %ecx
	jae	LBB0_9
## %bb.7:
	cmpq	$0, 8(%rbx)
	jne	LBB0_14
## %bb.8:
	movq	_EX_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_9:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	jle	LBB0_14
## %bb.10:
	movq	_EX_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	movq	_EX_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pjdlog_exitx                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADIST_BYTEORDER,8,3            ## @ADIST_BYTEORDER
	.comm	_ADIST_BUF_SIZE,8,3             ## @ADIST_BUF_SIZE
	.comm	_EX_PROTOCOL,4,2                ## @EX_PROTOCOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid datasize received (%ju)."

L_.str.1:                               ## @.str.1
	.asciz	"Invalid command received (%hhu)."

	.no_dead_strip	_adreq_decode_and_validate_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adreq_decode_and_validate_header
_adreq_decode_and_validate_header:      ; @adreq_decode_and_validate_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _ADIST_BYTEORDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADIST_BYTEORDER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x2, [x19, #8]
	b	LBB0_3
LBB0_2:
	str	x8, [x19]
	ldr	w0, [x19, #20]
	bl	_bswap64
	str	w0, [x19, #20]
	ldr	x0, [x19, #8]
	bl	_bswap32
	mov	x2, x0
	str	x0, [x19, #8]
LBB0_3:
Lloh3:
	adrp	x8, _ADIST_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADIST_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _EX_PROTOCOL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EX_PROTOCOL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pjdlog_exitx
LBB0_5:
	ldr	w2, [x19, #16]
	sub	w8, w2, #128
	cmp	w8, #4
	b.hi	LBB0_12
; %bb.6:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #25
	tst	w8, w9
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_11
; %bb.8:
Lloh11:
	adrp	x8, _EX_PROTOCOL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EX_PROTOCOL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	b	LBB0_13
LBB0_9:
	ldr	x2, [x19, #8]
	cmp	x2, #1
	b.lt	LBB0_11
; %bb.10:
Lloh16:
	adrp	x8, _EX_PROTOCOL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EX_PROTOCOL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	b	LBB0_13
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh21:
	adrp	x8, _EX_PROTOCOL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EX_PROTOCOL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pjdlog_exitx
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ADIST_BYTEORDER,8,3            ; @ADIST_BYTEORDER
	.comm	_ADIST_BUF_SIZE,8,3             ; @ADIST_BUF_SIZE
	.comm	_EX_PROTOCOL,4,2                ; @EX_PROTOCOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid datasize received (%ju)."

l_.str.1:                               ; @.str.1
	.asciz	"Invalid command received (%hhu)."

	.no_dead_strip	_adreq_decode_and_validate_header
.subsections_via_symbols
