	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl2830_pid_filter
_rtl2830_pid_filter:                    ## @rtl2830_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, %r13d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$32, %r12d
	jg	LBB0_5
## %bb.1:
	cmpl	$8191, %r14d                    ## imm = 0x1FFF
	jg	LBB0_5
## %bb.2:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.3:
	callq	_set_bit
	jmp	LBB0_7
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_6:
	callq	_clear_bit
LBB0_7:
	xorl	%r13d, %r13d
	movzbl	(%rbx), %eax
	movl	%eax, -64(%rbp)
	movzbl	1(%rbx), %eax
	movl	%eax, -60(%rbp)
	movzbl	2(%rbx), %eax
	movl	%eax, -56(%rbp)
	movzbl	3(%rbx), %eax
	movl	%eax, -52(%rbp)
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movl	$98, %esi
	movl	$4, %ecx
	callq	_rtl2830_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	%r14d, %ecx
	movzbl	%ch, %eax
	movl	%eax, -64(%rbp)
	movzbl	%cl, %eax
	movl	%eax, -60(%rbp)
	leal	102(%r12,%r12), %esi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movl	$2, %ecx
	callq	_rtl2830_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%ebx, %r13d
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	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	_rtl2830_pid_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl2830_pid_filter
_rtl2830_pid_filter:                    ; @rtl2830_pid_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x3
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x19, [x0]
	mov	x0, x19
	bl	_i2c_get_clientdata
	mov	x22, x0
	stp	x21, x24, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
	mov	w23, #0
	cmp	w20, #32
	b.gt	LBB0_8
; %bb.1:
	cmp	w21, #2, lsl #12                ; =8192
	b.ge	LBB0_8
; %bb.2:
	mov	x0, x20
	mov	x1, x22
	cbz	w24, LBB0_4
; %bb.3:
	bl	_set_bit
	b	LBB0_5
LBB0_4:
	bl	_clear_bit
LBB0_5:
	ldrb	w8, [x22]
	str	w8, [sp, #24]
	ldrb	w8, [x22, #1]
	str	w8, [sp, #28]
	ldrb	w8, [x22, #2]
	str	w8, [sp, #32]
	ldrb	w8, [x22, #3]
	str	w8, [sp, #36]
	add	x2, sp, #24
	mov	x0, x19
	mov	w1, #98
	mov	w3, #4
	bl	_rtl2830_bulk_write
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.6:
	ubfx	w8, w21, #8, #8
	and	w9, w21, #0xff
	stp	w8, w9, [sp, #24]
	lsl	w8, w20, #1
	add	w1, w8, #102
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #2
	bl	_rtl2830_bulk_write
	mov	x23, x0
	cbz	w0, LBB0_8
LBB0_7:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_dbg
LBB0_8:
	ldr	x8, [sp, #40]
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_10
; %bb.9:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	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	_rtl2830_pid_filter
.subsections_via_symbols
