	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l3dss1_get_channel_id
_l3dss1_get_channel_id:                 ## @l3dss1_get_channel_id
	.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
	movq	(%rsi), %rdi
	movl	8(%rsi), %esi
	movq	_IE_CHANNEL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_findie
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%rax), %edx
	cmpl	$1, %edx
	jne	LBB0_3
## %bb.5:
	movl	8(%rax), %edx
	testb	$96, %dl
	je	LBB0_8
## %bb.6:
	movq	_L3_DEB_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-3, %ebx
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.7:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_l3_debug
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_L3_DEB_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-2, %ebx
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.4:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_l3_debug
	jmp	LBB0_9
LBB0_8:
	andl	$3, %edx
	movl	%edx, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IE_CHANNEL_ID,4,2              ## @IE_CHANNEL_ID
	.comm	_L3_DEB_WARN,4,2                ## @L3_DEB_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong chid len %d"

L_.str.1:                               ## @.str.1
	.asciz	"wrong chid %x"

	.no_dead_strip	_l3dss1_get_channel_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l3dss1_get_channel_id
_l3dss1_get_channel_id:                 ; @l3dss1_get_channel_id
	.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	x0, [x1]
	ldr	w1, [x1, #8]
Lloh0:
	adrp	x8, _IE_CHANNEL_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IE_CHANNEL_ID@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_findie
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w2, [x0, #4]
	cmp	w2, #1
	b.ne	LBB0_7
; %bb.2:
	ldr	w2, [x0, #8]
	tst	w2, #0x60
	b.eq	LBB0_10
; %bb.3:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _L3_DEB_WARN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _L3_DEB_WARN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_l3_debug
LBB0_5:
	mov	w0, #-3
	b	LBB0_11
LBB0_6:
	mov	w0, #-1
	b	LBB0_11
LBB0_7:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _L3_DEB_WARN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _L3_DEB_WARN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_l3_debug
LBB0_9:
	mov	w0, #-2
	b	LBB0_11
LBB0_10:
	and	w0, w2, #0x3
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IE_CHANNEL_ID,4,2              ; @IE_CHANNEL_ID
	.comm	_L3_DEB_WARN,4,2                ; @L3_DEB_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong chid len %d"

l_.str.1:                               ; @.str.1
	.asciz	"wrong chid %x"

	.no_dead_strip	_l3dss1_get_channel_id
.subsections_via_symbols
