	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_firmware_response
_validate_firmware_response:            ## @validate_firmware_response
	.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	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	movq	(%rbx), %rsi
	cmpl	$1, 8(%rsi)
	jne	LBB0_7
## %bb.2:
	cmpl	$1, 12(%rsi)
	jne	LBB0_7
## %bb.3:
	cmpl	$16, 16(%rsi)
	jne	LBB0_7
## %bb.4:
	cmpl	$0, 20(%rsi)
	je	LBB0_5
LBB0_7:
	xorl	%edi, %edi
	cmpl	$0, 20(%rsi)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	(%rbx), %rax
	movl	20(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	28(%r14), %edi
	movl	8(%rbx), %edx
	callq	_memcpy
	movq	_ST_W4_PACKET_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
LBB0_6:
	movq	%r14, %rdi
	callq	_complete_all
LBB0_9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree_skb                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_W4_PACKET_TYPE,4,2          ## @ST_W4_PACKET_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no proper response during fw download"

L_.str.1:                               ## @.str.1
	.asciz	"data6 %x"

	.no_dead_strip	_validate_firmware_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_firmware_response
_validate_firmware_response:            ; @validate_firmware_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0, #16]
	cbz	x19, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x1, [x19]
	ldr	w8, [x1, #8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x1, #12]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x1, #16]
	cmp	w8, #16
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x1, #20]
	cbz	w8, LBB0_8
LBB0_5:
	ldr	w8, [x1, #20]
	cmp	w8, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	x8, [x19]
	ldr	w8, [x8, #20]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_10
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	ldr	w0, [x20, #28]
	ldr	w2, [x19, #8]
	bl	_memcpy
Lloh4:
	adrp	x8, _ST_W4_PACKET_TYPE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ST_W4_PACKET_TYPE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	stp	xzr, xzr, [x20, #8]
LBB0_9:
	mov	x0, x20
	bl	_complete_all
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_kfree_skb
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_W4_PACKET_TYPE,4,2          ; @ST_W4_PACKET_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no proper response during fw download"

l_.str.1:                               ; @.str.1
	.asciz	"data6 %x"

	.no_dead_strip	_validate_firmware_response
.subsections_via_symbols
