	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrf24j40_filter
_mrf24j40_filter:                       ## @mrf24j40_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_printdev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_IEEE802154_AFILT_SADDR_CHANGED@GOTPCREL(%rip), %rax
	testq	%r15, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	callq	_le16_to_cpu
	movzbl	%ah, %eax
	movl	%eax, %r13d
	movq	(%r14), %rdi
	callq	_le16_to_cpu
	movzbl	%al, %r12d
	movl	(%rbx), %edi
	movq	_REG_SADRH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r13d, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_REG_SADRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r12d, %edx
	callq	_regmap_write
	movq	%rbx, %rdi
	callq	_printdev
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_2:
	movq	_IEEE802154_AFILT_IEEEADDR_CHANGED@GOTPCREL(%rip), %rax
	testq	%r15, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	24(%r14), %rsi
	leaq	-80(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movl	(%rbx), %edi
	movq	_REG_EADR0@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movl	-80(%rbp), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	incq	%rsi
	movl	-76(%rbp), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$2, %rsi
	movl	-72(%rbp), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$3, %rsi
	movl	-68(%rbp), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$4, %rsi
	movl	-64(%rbp), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$5, %rsi
	movl	-60(%rbp), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$6, %rsi
	movl	-56(%rbp), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$7, %rsi
	movl	-52(%rbp), %edx
	callq	_regmap_write
LBB0_4:
	movq	_IEEE802154_AFILT_PANID_CHANGED@GOTPCREL(%rip), %rax
	testq	%r15, (%rax)
	je	LBB0_6
## %bb.5:
	movq	8(%r14), %rdi
	callq	_le16_to_cpu
	movzbl	%ah, %eax
	movl	%eax, %r13d
	movq	8(%r14), %rdi
	callq	_le16_to_cpu
	movzbl	%al, %r12d
	movl	(%rbx), %edi
	movq	_REG_PANIDH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r13d, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_REG_PANIDL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r12d, %edx
	callq	_regmap_write
	movq	%rbx, %rdi
	callq	_printdev
	movq	8(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_6:
	movq	_IEEE802154_AFILT_PANC_CHANGED@GOTPCREL(%rip), %rax
	testq	%r15, (%rax)
	je	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	cmpq	$0, 16(%r14)
	movq	_BIT_PANCOORD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	cmovel	%eax, %ecx
	movl	(%rbx), %edi
	movq	_REG_RXMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_printdev
	cmpq	$0, 16(%r14)
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rcx, %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$40, %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	"filter\n"

	.comm	_IEEE802154_AFILT_SADDR_CHANGED,8,3 ## @IEEE802154_AFILT_SADDR_CHANGED
	.comm	_REG_SADRH,8,3                  ## @REG_SADRH
	.comm	_REG_SADRL,8,3                  ## @REG_SADRL
L_.str.1:                               ## @.str.1
	.asciz	"Set short addr to %04hx\n"

	.comm	_IEEE802154_AFILT_IEEEADDR_CHANGED,8,3 ## @IEEE802154_AFILT_IEEEADDR_CHANGED
	.comm	_REG_EADR0,8,3                  ## @REG_EADR0
	.comm	_IEEE802154_AFILT_PANID_CHANGED,8,3 ## @IEEE802154_AFILT_PANID_CHANGED
	.comm	_REG_PANIDH,8,3                 ## @REG_PANIDH
	.comm	_REG_PANIDL,8,3                 ## @REG_PANIDL
L_.str.2:                               ## @.str.2
	.asciz	"Set PANID to %04hx\n"

	.comm	_IEEE802154_AFILT_PANC_CHANGED,8,3 ## @IEEE802154_AFILT_PANC_CHANGED
	.comm	_BIT_PANCOORD,4,2               ## @BIT_PANCOORD
	.comm	_REG_RXMCR,4,2                  ## @REG_RXMCR
L_.str.3:                               ## @.str.3
	.asciz	"Set Pan Coord to %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"on"

L_.str.5:                               ## @.str.5
	.asciz	"off"

	.no_dead_strip	_mrf24j40_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrf24j40_filter
_mrf24j40_filter:                       ; @mrf24j40_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	x21, x2
	mov	x19, 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	x20, [x0]
	mov	x0, x20
	bl	_printdev
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh5:
	adrp	x8, _IEEE802154_AFILT_SADDR_CHANGED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE802154_AFILT_SADDR_CHANGED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19]
	bl	_le16_to_cpu
	ubfx	w22, w0, #8, #8
	ldr	x0, [x19]
	bl	_le16_to_cpu
	and	w23, w0, #0xff
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _REG_SADRH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_SADRH@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	mov	x2, x22
	bl	_regmap_write
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _REG_SADRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_SADRL@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
	mov	x2, x23
	bl	_regmap_write
	mov	x0, x20
	bl	_printdev
	ldr	x8, [x19]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_2:
Lloh16:
	adrp	x8, _IEEE802154_AFILT_IEEEADDR_CHANGED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE802154_AFILT_IEEEADDR_CHANGED@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_4
; %bb.3:
	add	x1, x19, #24
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcpy
	ldr	w0, [x20]
Lloh19:
	adrp	x22, _REG_EADR0@GOTPAGE
Lloh20:
	ldr	x22, [x22, _REG_EADR0@GOTPAGEOFF]
	ldr	x1, [x22]
	ldr	w2, [sp, #8]
	bl	_regmap_write
	ldr	w0, [x20]
	ldr	x8, [x22]
	add	x1, x8, #1
	ldr	w2, [sp, #12]
	bl	_regmap_write
	ldr	w0, [x20]
	ldr	x8, [x22]
	add	x1, x8, #2
	ldr	w2, [sp, #16]
	bl	_regmap_write
	ldr	w0, [x20]
	ldr	x8, [x22]
	add	x1, x8, #3
	ldr	w2, [sp, #20]
	bl	_regmap_write
	ldr	w0, [x20]
	ldr	x8, [x22]
	add	x1, x8, #4
	ldr	w2, [sp, #24]
	bl	_regmap_write
	ldr	w0, [x20]
	ldr	x8, [x22]
	add	x1, x8, #5
	ldr	w2, [sp, #28]
	bl	_regmap_write
	ldr	w0, [x20]
	ldr	x8, [x22]
	add	x1, x8, #6
	ldr	w2, [sp, #32]
	bl	_regmap_write
	ldr	w0, [x20]
	ldr	x8, [x22]
	add	x1, x8, #7
	ldr	w2, [sp, #36]
	bl	_regmap_write
LBB0_4:
Lloh21:
	adrp	x8, _IEEE802154_AFILT_PANID_CHANGED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE802154_AFILT_PANID_CHANGED@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_le16_to_cpu
	ubfx	w22, w0, #8, #8
	ldr	x0, [x19, #8]
	bl	_le16_to_cpu
	and	w23, w0, #0xff
	ldr	w0, [x20]
Lloh24:
	adrp	x8, _REG_PANIDH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _REG_PANIDH@GOTPAGEOFF]
Lloh26:
	ldr	x1, [x8]
	mov	x2, x22
	bl	_regmap_write
	ldr	w0, [x20]
Lloh27:
	adrp	x8, _REG_PANIDL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _REG_PANIDL@GOTPAGEOFF]
Lloh29:
	ldr	x1, [x8]
	mov	x2, x23
	bl	_regmap_write
	mov	x0, x20
	bl	_printdev
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_6:
Lloh32:
	adrp	x8, _IEEE802154_AFILT_PANC_CHANGED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IEEE802154_AFILT_PANC_CHANGED@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x19, #16]
Lloh35:
	adrp	x9, _BIT_PANCOORD@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BIT_PANCOORD@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x9]
	cmp	x8, #0
	csel	w3, wzr, w2, eq
	ldr	w0, [x20]
Lloh38:
	adrp	x8, _REG_RXMCR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _REG_RXMCR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	bl	_regmap_update_bits
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_printdev
	ldr	x8, [x19, #16]
Lloh41:
	adrp	x9, l_.str.4@PAGE
Lloh42:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh43:
	adrp	x10, l_.str.5@PAGE
Lloh44:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh45:
	adrp	x1, l_.str.3@PAGE
Lloh46:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldr	x8, [sp, #40]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filter\n"

	.comm	_IEEE802154_AFILT_SADDR_CHANGED,8,3 ; @IEEE802154_AFILT_SADDR_CHANGED
	.comm	_REG_SADRH,8,3                  ; @REG_SADRH
	.comm	_REG_SADRL,8,3                  ; @REG_SADRL
l_.str.1:                               ; @.str.1
	.asciz	"Set short addr to %04hx\n"

	.comm	_IEEE802154_AFILT_IEEEADDR_CHANGED,8,3 ; @IEEE802154_AFILT_IEEEADDR_CHANGED
	.comm	_REG_EADR0,8,3                  ; @REG_EADR0
	.comm	_IEEE802154_AFILT_PANID_CHANGED,8,3 ; @IEEE802154_AFILT_PANID_CHANGED
	.comm	_REG_PANIDH,8,3                 ; @REG_PANIDH
	.comm	_REG_PANIDL,8,3                 ; @REG_PANIDL
l_.str.2:                               ; @.str.2
	.asciz	"Set PANID to %04hx\n"

	.comm	_IEEE802154_AFILT_PANC_CHANGED,8,3 ; @IEEE802154_AFILT_PANC_CHANGED
	.comm	_BIT_PANCOORD,4,2               ; @BIT_PANCOORD
	.comm	_REG_RXMCR,4,2                  ; @REG_RXMCR
l_.str.3:                               ; @.str.3
	.asciz	"Set Pan Coord to %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"on"

l_.str.5:                               ; @.str.5
	.asciz	"off"

	.no_dead_strip	_mrf24j40_filter
.subsections_via_symbols
