	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AdvCodecSupport
_AdvCodecSupport:                       ## @AdvCodecSupport
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	16(%rdi), %eax
	movq	_HANDSET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.1:
	movq	%rdx, %r14
	cmpl	$0, (%rbx)
	je	LBB0_13
## %bb.2:
	movq	40(%rbx), %rsi
	cmpq	%r14, 32(%rbx)
	jne	LBB0_16
## %bb.3:
	testq	%rsi, %rsi
	jne	LBB0_16
## %bb.4:
	xorl	%r14d, %r14d
	testq	%r12, %r12
	je	LBB0_22
## %bb.5:
	movq	%r12, 40(%rbx)
	movq	_ADV_VOICE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_22
LBB0_6:
	movl	$12299, %r14d                   ## imm = 0x300B
	testq	%r13, %r13
	jne	LBB0_22
## %bb.7:
	movq	_ON_BOARD_CODEC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_22
## %bb.8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	_CODEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_10:
	leaq	L_.str.6(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	cmpl	$0, 4(%rbx)
	jne	LBB0_22
## %bb.11:
	movq	%rbx, %rdi
	callq	_get_plci
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	decl	%eax
	cltq
	leaq	(%rax,%rax,2), %r15
	shlq	$3, %r15
	addq	8(%rbx), %r15
	movq	_CAI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%r15, %rdi
	callq	_add_p
	movq	_UID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_add_p
	movq	_ASSIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$192, %edx
	callq	_sig_req
	movq	%r15, %rdi
	callq	_send_req
	movl	$1, 4(%rbx)
	jmp	LBB0_22
LBB0_13:
	movq	%rbx, %rdi
	callq	_get_plci
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	movq	8(%rbx), %rcx
	decl	%eax
	cltq
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rcx,%rdx,8), %r15
	movq	_CODEC_PERMANENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx,%rdx,8)
	testq	%r13, %r13
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_18
## %bb.15:
	movq	_ADVANCED_VOICE_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rdx, %r13
	movl	%eax, 16(%rcx,%rdx,8)
	testq	%r12, %r12
	jne	LBB0_20
	jmp	LBB0_21
LBB0_16:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
LBB0_17:
	movl	$8193, %r14d                    ## imm = 0x2001
	jmp	LBB0_22
LBB0_18:
	movq	_ADVANCED_VOICE_NOSIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rdx, %r13
	movl	%eax, 16(%rcx,%rdx,8)
	testq	%r12, %r12
	je	LBB0_21
## %bb.19:
	movq	_SPOOFING_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
LBB0_20:
	movq	%r12, 40(%rbx)
	movq	_ADV_VOICE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_21:
	movq	%r14, 32(%rbx)
	movl	$1, (%rbx)
	movq	%r15, 24(%rbx)
	movq	_CAI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_add_p
	movq	_LLI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	l_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_add_p
	movq	_ESC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	callq	_add_p
	movq	_UID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_add_p
	movq	_PERM_COD_ASSIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx,%r13,8)
	leaq	L_.str.5(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	movq	_ASSIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DSIG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_sig_req
	movq	%r15, %rdi
	callq	_send_req
LBB0_22:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HANDSET,4,2                    ## @HANDSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AdvSigPlci=0x%x"

	.comm	_ADV_VOICE,8,3                  ## @ADV_VOICE
	.comm	_CODEC_PERMANENT,8,3            ## @CODEC_PERMANENT
	.comm	_ADVANCED_VOICE_SIG,4,2         ## @ADVANCED_VOICE_SIG
	.comm	_ADVANCED_VOICE_NOSIG,4,2       ## @ADVANCED_VOICE_NOSIG
	.comm	_SPOOFING_REQUIRED,4,2          ## @SPOOFING_REQUIRED
	.comm	_CAI,4,2                        ## @CAI
L_.str.1:                               ## @.str.1
	.asciz	"\001\025"

	.comm	_LLI,4,2                        ## @LLI
	.section	__TEXT,__const
l_.str.2:                               ## @.str.2
	.asciz	"\001\000"

	.comm	_ESC,4,2                        ## @ESC
	.section	__TEXT,__literal4,4byte_literals
L_.str.3:                               ## @.str.3
	.asciz	"\002\030\000"

	.comm	_UID,4,2                        ## @UID
	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"\006Capi20"

	.comm	_PERM_COD_ASSIGN,4,2            ## @PERM_COD_ASSIGN
L_.str.5:                               ## @.str.5
	.asciz	"Codec Assign"

	.comm	_ASSIGN,4,2                     ## @ASSIGN
	.comm	_DSIG_ID,4,2                    ## @DSIG_ID
	.comm	_ON_BOARD_CODEC,4,2             ## @ON_BOARD_CODEC
	.comm	_CODEC,8,3                      ## @CODEC
L_.str.6:                               ## @.str.6
	.asciz	"S/SCOM codec"

L_.str.7:                               ## @.str.7
	.asciz	"\001\200"

	.no_dead_strip	_AdvCodecSupport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AdvCodecSupport
_AdvCodecSupport:                       ; @AdvCodecSupport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x9, _HANDSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HANDSET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x22, x2
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.2:
	ldp	x9, x8, [x19, #32]
	cmp	x9, x22
	ccmp	x8, #0, #0, eq
	b.eq	LBB0_14
; %bb.3:
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	mov	w0, #8193
	b	LBB0_22
LBB0_4:
	mov	w0, #12299
	cbnz	x23, LBB0_22
; %bb.5:
Lloh5:
	adrp	x9, _ON_BOARD_CODEC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ON_BOARD_CODEC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w8, LBB0_22
; %bb.6:
	cbz	x21, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _CODEC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CODEC@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_8:
Lloh11:
	adrp	x0, l_.str.6@PAGE
Lloh12:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_21
; %bb.9:
	mov	x0, x19
	bl	_get_plci
	cbz	w0, LBB0_16
; %bb.10:
	ldr	x8, [x19, #8]
	sub	w9, w0, #1
	mov	w10, #24
	smaddl	x20, w9, w10, x8
Lloh13:
	adrp	x8, _CAI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CAI@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.7@PAGE
Lloh17:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_add_p
Lloh18:
	adrp	x8, _UID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UID@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.4@PAGE
Lloh22:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_add_p
Lloh23:
	adrp	x8, _ASSIGN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ASSIGN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #192
	bl	_sig_req
	mov	x0, x20
	bl	_send_req
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_22
LBB0_11:
	mov	x0, x19
	bl	_get_plci
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_16
; %bb.12:
	ldr	x24, [x19, #8]
	sxtw	x8, w0
	sub	x25, x8, #1
	mov	w8, #24
	madd	x20, x25, x8, x24
Lloh26:
	adrp	x8, _CODEC_PERMANENT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CODEC_PERMANENT@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x20]
	cbz	x23, LBB0_17
; %bb.13:
Lloh29:
	adrp	x8, _ADVANCED_VOICE_SIG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ADVANCED_VOICE_SIG@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	mov	w9, #24
	madd	x9, x25, x9, x24
	str	w8, [x9, #16]
	cbnz	x21, LBB0_19
	b	LBB0_20
LBB0_14:
	mov	w0, #0
	cbz	x21, LBB0_22
; %bb.15:
	str	x21, [x19, #40]
Lloh32:
	adrp	x8, _ADV_VOICE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ADV_VOICE@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_22
LBB0_16:
	mov	w0, #8193
	b	LBB0_22
LBB0_17:
Lloh35:
	adrp	x8, _ADVANCED_VOICE_NOSIG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ADVANCED_VOICE_NOSIG@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	mov	w9, #24
	madd	x9, x25, x9, x24
	str	w8, [x9, #16]
	cbz	x21, LBB0_20
; %bb.18:
Lloh38:
	adrp	x8, _SPOOFING_REQUIRED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SPOOFING_REQUIRED@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x21, #12]
LBB0_19:
	str	x21, [x19, #40]
Lloh41:
	adrp	x8, _ADV_VOICE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ADV_VOICE@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_20:
	mov	w8, #1
	str	w8, [x19]
	stp	x20, x22, [x19, #24]
Lloh44:
	adrp	x8, _CAI@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CAI@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x2, l_.str.1@PAGE
Lloh48:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_add_p
Lloh49:
	adrp	x8, _LLI@GOTPAGE
Lloh50:
	ldr	x8, [x8, _LLI@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x2, l_.str.2@PAGE
Lloh53:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_add_p
Lloh54:
	adrp	x8, _ESC@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ESC@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x2, l_.str.3@PAGE
Lloh58:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_add_p
Lloh59:
	adrp	x8, _UID@GOTPAGE
Lloh60:
	ldr	x8, [x8, _UID@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
Lloh62:
	adrp	x2, l_.str.4@PAGE
Lloh63:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_add_p
Lloh64:
	adrp	x8, _PERM_COD_ASSIGN@GOTPAGE
Lloh65:
	ldr	x8, [x8, _PERM_COD_ASSIGN@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	mov	w9, #24
	madd	x9, x25, x9, x24
	str	w8, [x9, #8]
Lloh67:
	adrp	x0, l_.str.5@PAGE
Lloh68:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
Lloh69:
	adrp	x8, _ASSIGN@GOTPAGE
Lloh70:
	ldr	x8, [x8, _ASSIGN@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
Lloh72:
	adrp	x8, _DSIG_ID@GOTPAGE
Lloh73:
	ldr	x8, [x8, _DSIG_ID@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sig_req
	mov	x0, x20
	bl	_send_req
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_HANDSET,4,2                    ; @HANDSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AdvSigPlci=0x%x"

	.comm	_ADV_VOICE,8,3                  ; @ADV_VOICE
	.comm	_CODEC_PERMANENT,8,3            ; @CODEC_PERMANENT
	.comm	_ADVANCED_VOICE_SIG,4,2         ; @ADVANCED_VOICE_SIG
	.comm	_ADVANCED_VOICE_NOSIG,4,2       ; @ADVANCED_VOICE_NOSIG
	.comm	_SPOOFING_REQUIRED,4,2          ; @SPOOFING_REQUIRED
	.comm	_CAI,4,2                        ; @CAI
l_.str.1:                               ; @.str.1
	.asciz	"\001\025"

	.comm	_LLI,4,2                        ; @LLI
	.section	__TEXT,__const
l_.str.2:                               ; @.str.2
	.asciz	"\001\000"

	.comm	_ESC,4,2                        ; @ESC
	.section	__TEXT,__literal4,4byte_literals
l_.str.3:                               ; @.str.3
	.asciz	"\002\030\000"

	.comm	_UID,4,2                        ; @UID
	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"\006Capi20"

	.comm	_PERM_COD_ASSIGN,4,2            ; @PERM_COD_ASSIGN
l_.str.5:                               ; @.str.5
	.asciz	"Codec Assign"

	.comm	_ASSIGN,4,2                     ; @ASSIGN
	.comm	_DSIG_ID,4,2                    ; @DSIG_ID
	.comm	_ON_BOARD_CODEC,4,2             ; @ON_BOARD_CODEC
	.comm	_CODEC,8,3                      ; @CODEC
l_.str.6:                               ; @.str.6
	.asciz	"S/SCOM codec"

l_.str.7:                               ; @.str.7
	.asciz	"\001\200"

	.no_dead_strip	_AdvCodecSupport
.subsections_via_symbols
