	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_get_response_length         ## -- Begin function fw_get_response_length
	.p2align	4, 0x90
_fw_get_response_length:                ## @fw_get_response_length
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_HEADER_GET_TCODE
                                        ## kill: def $eax killed $eax def $rax
	xorl	%r14d, %r14d
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	$4, %r14d
	jmp	LBB0_7
LBB0_4:
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	callq	_HEADER_GET_EXTENDED_TCODE
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	callq	_HEADER_GET_DATA_LENGTH
	movl	%eax, %r14d
	addl	$-133, %r15d
	cmpl	$2, %r15d
	jb	LBB0_7
## %bb.5:
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	sarl	%eax
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_WARN
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HEADER_GET_DATA_LENGTH         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong tcode %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_get_response_length         ; -- Begin function fw_get_response_length
	.p2align	2
_fw_get_response_length:                ; @fw_get_response_length
	.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	x8, [x0]
	ldr	w0, [x8]
	bl	_HEADER_GET_TCODE
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.1:
	mov	w0, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #4
	b	LBB0_6
LBB0_3:
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	bl	_HEADER_GET_EXTENDED_TCODE
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	bl	_HEADER_GET_DATA_LENGTH
	sub	w8, w20, #133
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.4:
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w0, w8, #1
	b	LBB0_6
LBB0_5:
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_HEADER_GET_DATA_LENGTH
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong tcode %d\n"

.subsections_via_symbols
