	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9013_pid_filter
_af9013_pid_filter:                     ## @af9013_pid_filter
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	movq	8(%r15), %r14
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$8191, %ebx                     ## imm = 0x1FFF
	jg	LBB0_4
## %bb.1:
	movzbl	%bl, %eax
	movl	%eax, -56(%rbp)
	movzbl	%bh, %eax
	movl	%eax, -52(%rbp)
	movl	(%r15), %edi
	leaq	-56(%rbp), %rdx
	movl	$54533, %esi                    ## imm = 0xD505
	movl	$2, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%r15), %edi
	shll	$5, %r12d
	orl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	movl	$54532, %esi                    ## imm = 0xD504
	movl	%r12d, %edx
	callq	_regmap_write
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index %d, pid %04x, onoff %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed %d\n"

	.no_dead_strip	_af9013_pid_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9013_pid_filter
_af9013_pid_filter:                     ; @af9013_pid_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x23, [x0]
	ldr	x19, [x23, #8]
	stp	x22, x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
	cmp	w22, #2, lsl #12                ; =8192
	b.lt	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_4
LBB0_2:
	and	w8, w22, #0xff
	ubfx	w9, w22, #8, #8
	stp	w8, w9, [sp, #16]
	ldr	w0, [x23]
	add	x2, sp, #16
	mov	w1, #54533
	mov	w3, #2
	bl	_regmap_bulk_write
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x23]
	orr	w2, w21, w20, lsl #5
	mov	w1, #54532
	bl	_regmap_write
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_dbg
LBB0_5:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index %d, pid %04x, onoff %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed %d\n"

	.no_dead_strip	_af9013_pid_filter
.subsections_via_symbols
