	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxd2880_set_pid_filter
_cxd2880_set_pid_filter:                ## @cxd2880_set_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	%rbx
	subq	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, -304(%rbp)
	leaq	-304(%rbp), %rdx
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_cxd2880_write_reg
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	setne	%al
	movl	%eax, -304(%rbp)
	movq	_CXD2880_MAX_FILTER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.6:
	movq	(%r14), %rcx
	addq	%r8, %r8
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, -300(%rbp,%rdx,4)
	xorl	%edi, %edi
	movq	%rdx, %rax
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%edi, -296(%rbp,%rax,4)
	incq	%rsi
	addq	$2, %rdx
	cmpq	%rdx, %r8
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rcx,%rdx,8)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rcx,%rdx,8), %ebx
	movzbl	%bl, %edi
	sarl	$8, %ebx
	orl	$32, %ebx
	leaq	(%rsi,%rsi), %rax
	movl	%ebx, -300(%rbp,%rdx,4)
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_11:
	leaq	-304(%rbp), %rdx
	movq	%r15, %rdi
	movl	$80, %esi
	movl	$65, %ecx
	jmp	LBB0_12
LBB0_4:
	movl	$2, -304(%rbp)
	leaq	-304(%rbp), %rdx
	movq	%r15, %rdi
	movl	$80, %esi
	movl	$1, %ecx
LBB0_12:
	callq	_cxd2880_write_reg
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_MAX_FILTER_SIZE,4,2    ## @CXD2880_MAX_FILTER_SIZE
	.no_dead_strip	_cxd2880_set_pid_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxd2880_set_pid_filter
_cxd2880_set_pid_filter:                ; @cxd2880_set_pid_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #4]
	add	x2, sp, #4
	mov	w1, #0
	mov	w3, #1
	bl	_cxd2880_write_reg
	cbnz	w0, LBB0_13
; %bb.2:
	cbz	x20, LBB0_11
; %bb.3:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [sp, #4]
Lloh3:
	adrp	x8, _CXD2880_MAX_FILTER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CXD2880_MAX_FILTER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x8]
	cmp	w13, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x8, #0
	mov	x9, #0
	ldr	x10, [x20]
	add	x10, x10, #8
	add	x11, sp, #4
	add	x12, x11, #4
	lsl	x13, x13, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x12, x8, lsl #2]
	mov	x15, x8
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x15, x11, x15, lsl #2
	str	w14, [x15, #8]
	add	x9, x9, #1
	add	x10, x10, #16
	add	x8, x8, #2
	cmp	x13, x8
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x10]
	cbz	x14, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	w14, [x10, #-8]
	asr	w15, w14, #8
	orr	w16, w15, #0x20
	lsl	x15, x9, #1
	str	w16, [x12, x8, lsl #2]
	and	w14, w14, #0xff
	b	LBB0_6
LBB0_9:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_10:
	add	x2, sp, #4
	mov	x0, x19
	mov	w1, #80
	mov	w3, #65
	b	LBB0_12
LBB0_11:
	mov	w8, #2
	str	w8, [sp, #4]
	add	x2, sp, #4
	mov	x0, x19
	mov	w1, #80
	mov	w3, #1
LBB0_12:
	bl	_cxd2880_write_reg
LBB0_13:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_MAX_FILTER_SIZE,4,2    ; @CXD2880_MAX_FILTER_SIZE
	.no_dead_strip	_cxd2880_set_pid_filter
.subsections_via_symbols
