	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9005_pid_filter
_af9005_pid_filter:                     ## @af9005_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	%rdi, %r15
	movl	%esi, %r14d
	andl	$31, %r14d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
	movl	(%r15), %eax
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_af9005_pid_filter_control
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
LBB0_3:
	movl	4(%r15), %edi
	movq	_XD_MP2IF_PID_DATA_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r12b, %edx
	callq	_af9005_write_ofdm_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movl	4(%r15), %edi
	movq	_XD_MP2IF_PID_DATA_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$8, %r12d
	movl	%r12d, %edx
	callq	_af9005_write_ofdm_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	orl	$96, %r14d
	jmp	LBB0_8
LBB0_6:
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movl	4(%r15), %edi
	movq	_XD_MP2IF_PID_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_af9005_write_ofdm_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_deb_info
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_af9005_pid_filter_control
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set pid filter, index %d, pid %x, onoff %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"first pid set, enable pid table\n"

	.comm	_XD_MP2IF_PID_DATA_L,4,2        ## @XD_MP2IF_PID_DATA_L
	.comm	_XD_MP2IF_PID_DATA_H,4,2        ## @XD_MP2IF_PID_DATA_H
L_.str.2:                               ## @.str.2
	.asciz	"last pid unset, disable pid table\n"

	.comm	_XD_MP2IF_PID_IDX,4,2           ## @XD_MP2IF_PID_IDX
L_.str.3:                               ## @.str.3
	.asciz	"set pid ok\n"

	.no_dead_strip	_af9005_pid_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9005_pid_filter
_af9005_pid_filter:                     ; @af9005_pid_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x21, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x20, x0
	and	w19, w1, #0x1f
	stp	x21, x22, [sp, #8]
	str	x1, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	ldr	w8, [x20]
	cbz	w22, LBB0_6
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
	mov	x0, x20
	mov	x1, x22
	bl	_af9005_pid_filter_control
	cbnz	w0, LBB0_10
LBB0_3:
	ldr	w0, [x20, #4]
Lloh4:
	adrp	x8, _XD_MP2IF_PID_DATA_L@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XD_MP2IF_PID_DATA_L@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	and	w2, w21, #0xff
	bl	_af9005_write_ofdm_register
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w0, [x20, #4]
Lloh7:
	adrp	x8, _XD_MP2IF_PID_DATA_H@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XD_MP2IF_PID_DATA_H@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	asr	w2, w21, #8
	bl	_af9005_write_ofdm_register
	cbnz	w0, LBB0_10
; %bb.5:
	orr	w19, w19, #0x60
	b	LBB0_7
LBB0_6:
	cbz	w8, LBB0_9
LBB0_7:
	ldr	w0, [x20, #4]
Lloh10:
	adrp	x8, _XD_MP2IF_PID_IDX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XD_MP2IF_PID_IDX@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_af9005_write_ofdm_register
	cbnz	w0, LBB0_10
; %bb.8:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_deb_info
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_info
	mov	x0, x20
	mov	w1, #0
	bl	_af9005_pid_filter_control
	cbz	w0, LBB0_7
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set pid filter, index %d, pid %x, onoff %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"first pid set, enable pid table\n"

	.comm	_XD_MP2IF_PID_DATA_L,4,2        ; @XD_MP2IF_PID_DATA_L
	.comm	_XD_MP2IF_PID_DATA_H,4,2        ; @XD_MP2IF_PID_DATA_H
l_.str.2:                               ; @.str.2
	.asciz	"last pid unset, disable pid table\n"

	.comm	_XD_MP2IF_PID_IDX,4,2           ; @XD_MP2IF_PID_IDX
l_.str.3:                               ; @.str.3
	.asciz	"set pid ok\n"

	.no_dead_strip	_af9005_pid_filter
.subsections_via_symbols
