	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avc_ca_enter_menu              ## -- Begin function avc_ca_enter_menu
	.p2align	4, 0x90
_avc_ca_enter_menu:                     ## @avc_ca_enter_menu
	.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, %r15
	movq	16(%rdi), %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_AVC_CTYPE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_AVC_SUBUNIT_TYPE_TUNER@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_AVC_OPCODE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_SFE_VENDOR_DE_COMPANYID_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_SFE_VENDOR_DE_COMPANYID_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rcx)
	movq	_SFE_VENDOR_DE_COMPANYID_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rcx)
	movq	_SFE_VENDOR_OPCODE_HOST2CA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rcx)
	movq	$0, 32(%rcx)
	movq	_SFE_VENDOR_TAG_CA_ENTER_MENU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rcx)
	movq	%rbx, %rdi
	movl	$6, %esi
	movl	$8, %edx
	callq	_clear_operands
	movl	$12, 4(%r15)
	movq	%r15, %rdi
	callq	_avc_write
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVC_CTYPE_STATUS,4,2           ## @AVC_CTYPE_STATUS
	.comm	_AVC_SUBUNIT_TYPE_TUNER,4,2     ## @AVC_SUBUNIT_TYPE_TUNER
	.comm	_AVC_OPCODE_VENDOR,4,2          ## @AVC_OPCODE_VENDOR
	.comm	_SFE_VENDOR_DE_COMPANYID_0,8,3  ## @SFE_VENDOR_DE_COMPANYID_0
	.comm	_SFE_VENDOR_DE_COMPANYID_1,8,3  ## @SFE_VENDOR_DE_COMPANYID_1
	.comm	_SFE_VENDOR_DE_COMPANYID_2,8,3  ## @SFE_VENDOR_DE_COMPANYID_2
	.comm	_SFE_VENDOR_OPCODE_HOST2CA,8,3  ## @SFE_VENDOR_OPCODE_HOST2CA
	.comm	_SFE_VENDOR_TAG_CA_ENTER_MENU,8,3 ## @SFE_VENDOR_TAG_CA_ENTER_MENU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avc_ca_enter_menu              ; -- Begin function avc_ca_enter_menu
	.p2align	2
_avc_ca_enter_menu:                     ; @avc_ca_enter_menu
	.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	x19, x0
	ldr	x20, [x0, #16]
	add	x21, x0, #8
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x8, _AVC_CTYPE_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVC_CTYPE_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AVC_SUBUNIT_TYPE_TUNER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVC_SUBUNIT_TYPE_TUNER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x20]
Lloh6:
	adrp	x9, _AVC_OPCODE_VENDOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVC_OPCODE_VENDOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh9:
	adrp	x8, _SFE_VENDOR_DE_COMPANYID_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SFE_VENDOR_DE_COMPANYID_0@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	str	x8, [x9]
Lloh12:
	adrp	x8, _SFE_VENDOR_DE_COMPANYID_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SFE_VENDOR_DE_COMPANYID_1@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x10, _SFE_VENDOR_DE_COMPANYID_2@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SFE_VENDOR_DE_COMPANYID_2@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	stp	x8, x10, [x9, #8]
Lloh18:
	adrp	x8, _SFE_VENDOR_OPCODE_HOST2CA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SFE_VENDOR_OPCODE_HOST2CA@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	stp	x8, xzr, [x9, #24]
Lloh21:
	adrp	x8, _SFE_VENDOR_TAG_CA_ENTER_MENU@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SFE_VENDOR_TAG_CA_ENTER_MENU@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x9, #40]
	mov	x0, x20
	mov	w1, #6
	mov	w2, #8
	bl	_clear_operands
	mov	w8, #12
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_avc_write
	mov	x19, x0
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	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
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVC_CTYPE_STATUS,4,2           ; @AVC_CTYPE_STATUS
	.comm	_AVC_SUBUNIT_TYPE_TUNER,4,2     ; @AVC_SUBUNIT_TYPE_TUNER
	.comm	_AVC_OPCODE_VENDOR,4,2          ; @AVC_OPCODE_VENDOR
	.comm	_SFE_VENDOR_DE_COMPANYID_0,8,3  ; @SFE_VENDOR_DE_COMPANYID_0
	.comm	_SFE_VENDOR_DE_COMPANYID_1,8,3  ; @SFE_VENDOR_DE_COMPANYID_1
	.comm	_SFE_VENDOR_DE_COMPANYID_2,8,3  ; @SFE_VENDOR_DE_COMPANYID_2
	.comm	_SFE_VENDOR_OPCODE_HOST2CA,8,3  ; @SFE_VENDOR_OPCODE_HOST2CA
	.comm	_SFE_VENDOR_TAG_CA_ENTER_MENU,8,3 ; @SFE_VENDOR_TAG_CA_ENTER_MENU
.subsections_via_symbols
