	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qdm2_decode_sub_packet_header
_qdm2_decode_sub_packet_header:         ## @qdm2_decode_sub_packet_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, 4(%rbx)
	movl	(%rbx), %ecx
	testb	$-128, %cl
	je	LBB0_4
## %bb.3:
	shll	$8, %eax
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	orl	%eax, 4(%rbx)
	movl	(%rbx), %ecx
	andl	$127, %ecx
	movl	%ecx, (%rbx)
LBB0_4:
	cmpl	$127, %ecx
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	shll	$8, %eax
	orl	%eax, (%rbx)
LBB0_6:
	movq	(%r14), %r15
	movq	%r14, %rdi
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rax
	leaq	(%r15,%rax,4), %rax
	movq	%rax, 8(%rbx)
	movl	(%rbx), %r15d
	movl	4(%rbx), %r12d
	jmp	LBB0_7
LBB0_1:
	movl	$0, 4(%rbx)
	movq	$0, 8(%rbx)
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_7:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %r9d
	testl	%eax, %eax
	cmovnsl	%eax, %r9d
	sarl	$3, %r9d
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Subpacket: type=%d size=%d start_offs=%x\n"

	.no_dead_strip	_qdm2_decode_sub_packet_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qdm2_decode_sub_packet_header
_qdm2_decode_sub_packet_header:         ; @qdm2_decode_sub_packet_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	mov	w1, #8
	bl	_get_bits
	str	w0, [x20]
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	w0, [x20, #4]
	ldr	w8, [x20]
	tbz	w8, #7, LBB0_3
; %bb.2:
	lsl	w8, w0, #8
	str	w8, [x20, #4]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	ldp	w9, w8, [x20]
	orr	w10, w8, w0
	and	w8, w9, #0x7f
	stp	w8, w10, [x20]
LBB0_3:
	cmp	w8, #127
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	ldr	w8, [x20]
	orr	w8, w8, w0, lsl #8
	str	w8, [x20]
LBB0_5:
	ldr	x21, [x19]
	mov	x0, x19
	bl	_get_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	add	x8, x21, w8, sxtw #2
	str	x8, [x20, #8]
	ldp	w21, w22, [x20]
	b	LBB0_7
LBB0_6:
	mov	w22, #0
	mov	w21, #0
	str	wzr, [x20, #4]
	str	xzr, [x20, #8]
LBB0_7:
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_get_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w5, w8, #3
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x1, x20
	mov	x3, x21
	mov	x4, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_av_log
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Subpacket: type=%d size=%d start_offs=%x\n"

	.no_dead_strip	_qdm2_decode_sub_packet_header
.subsections_via_symbols
