	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avc_ca_reset                   ## -- Begin function avc_ca_reset
	.p2align	4, 0x90
_avc_ca_reset:                          ## @avc_ca_reset
	.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_CONTROL@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
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_SFE_VENDOR_DE_COMPANYID_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_SFE_VENDOR_DE_COMPANYID_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	_SFE_VENDOR_OPCODE_HOST2CA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movl	$0, 16(%rcx)
	movq	_SFE_VENDOR_TAG_CA_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 24(%rcx)
	movl	$0, 32(%rcx)
	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_CONTROL,4,2          ## @AVC_CTYPE_CONTROL
	.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,4,2  ## @SFE_VENDOR_DE_COMPANYID_0
	.comm	_SFE_VENDOR_DE_COMPANYID_1,4,2  ## @SFE_VENDOR_DE_COMPANYID_1
	.comm	_SFE_VENDOR_DE_COMPANYID_2,4,2  ## @SFE_VENDOR_DE_COMPANYID_2
	.comm	_SFE_VENDOR_OPCODE_HOST2CA,4,2  ## @SFE_VENDOR_OPCODE_HOST2CA
	.comm	_SFE_VENDOR_TAG_CA_RESET,4,2    ## @SFE_VENDOR_TAG_CA_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function avc_ca_reset
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_avc_ca_reset
	.p2align	2
_avc_ca_reset:                          ; @avc_ca_reset
	.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	x21, [x0, #16]
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _AVC_CTYPE_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVC_CTYPE_CONTROL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AVC_SUBUNIT_TYPE_TUNER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVC_SUBUNIT_TYPE_TUNER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
Lloh5:
	ldr	w8, [x8]
	str	w9, [x21]
Lloh6:
	adrp	x9, _AVC_OPCODE_VENDOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVC_OPCODE_VENDOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #16]
Lloh9:
	adrp	x8, _SFE_VENDOR_DE_COMPANYID_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SFE_VENDOR_DE_COMPANYID_0@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
	str	w8, [x9]
Lloh12:
	adrp	x8, _SFE_VENDOR_DE_COMPANYID_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SFE_VENDOR_DE_COMPANYID_1@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _SFE_VENDOR_DE_COMPANYID_2@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SFE_VENDOR_DE_COMPANYID_2@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	stp	w8, w10, [x9, #4]
Lloh18:
	adrp	x8, _SFE_VENDOR_OPCODE_HOST2CA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SFE_VENDOR_OPCODE_HOST2CA@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	w8, wzr, [x9, #12]
Lloh21:
	adrp	x8, _SFE_VENDOR_TAG_CA_RESET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SFE_VENDOR_TAG_CA_RESET@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x9, #20]
Lloh24:
	adrp	x8, lCPI0_0@PAGE
Lloh25:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x9, #24]
	str	wzr, [x9, #32]
	mov	w8, #12
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_avc_write
	mov	x19, x0
	mov	x0, x20
	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 AdrpLdr	Lloh24, Lloh25
	.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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVC_CTYPE_CONTROL,4,2          ; @AVC_CTYPE_CONTROL
	.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,4,2  ; @SFE_VENDOR_DE_COMPANYID_0
	.comm	_SFE_VENDOR_DE_COMPANYID_1,4,2  ; @SFE_VENDOR_DE_COMPANYID_1
	.comm	_SFE_VENDOR_DE_COMPANYID_2,4,2  ; @SFE_VENDOR_DE_COMPANYID_2
	.comm	_SFE_VENDOR_OPCODE_HOST2CA,4,2  ; @SFE_VENDOR_OPCODE_HOST2CA
	.comm	_SFE_VENDOR_TAG_CA_RESET,4,2    ; @SFE_VENDOR_TAG_CA_RESET
.subsections_via_symbols
