	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_add_del_mcast_filter_cmd ## -- Begin function ath6kl_wmi_add_del_mcast_filter_cmd
	.p2align	4, 0x90
_ath6kl_wmi_add_del_mcast_filter_cmd:   ## @ath6kl_wmi_add_del_mcast_filter_cmd
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdx), %eax
	cmpl	$1, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$51, %eax
	jne	LBB0_8
## %bb.2:
	cmpl	$51, 4(%rbx)
	jne	LBB0_8
LBB0_3:
	movl	$4, %edi
	callq	_ath6kl_wmi_get_new_buf
	testq	%rax, %rax
	je	LBB0_4
## %bb.10:
	movq	%rax, %r13
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_ATH6KL_MCAST_FILTER_MAC_ADDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.12:
	movq	_WMI_DEL_MCAST_FILTER_CMDID@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	cmpl	$0, 4(%rbx)
	jne	LBB0_8
## %bb.6:
	cmpl	$94, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	cmpl	$128, 12(%rbx)
	jl	LBB0_3
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_ath6kl_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_11:
	movq	_WMI_SET_MCAST_FILTER_CMDID@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ecx
	movq	_NO_SYNC_WMIFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_wmi_cmd_send            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid multicast filter address\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATH6KL_MCAST_FILTER_MAC_ADDR_SIZE,4,2 ## @ATH6KL_MCAST_FILTER_MAC_ADDR_SIZE
	.comm	_WMI_SET_MCAST_FILTER_CMDID,4,2 ## @WMI_SET_MCAST_FILTER_CMDID
	.comm	_WMI_DEL_MCAST_FILTER_CMDID,4,2 ## @WMI_DEL_MCAST_FILTER_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ## @NO_SYNC_WMIFLAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_add_del_mcast_filter_cmd ; -- Begin function ath6kl_wmi_add_del_mcast_filter_cmd
	.p2align	2
_ath6kl_wmi_add_del_mcast_filter_cmd:   ; @ath6kl_wmi_add_del_mcast_filter_cmd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x2]
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #51
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x22, #4]
	cmp	w8, #51
	b.ne	LBB0_8
LBB0_3:
	mov	w0, #4
	bl	_ath6kl_wmi_get_new_buf
	cbz	x0, LBB0_10
; %bb.4:
	mov	x23, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _ATH6KL_MCAST_FILTER_MAC_ADDR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_MCAST_FILTER_MAC_ADDR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_memcpy
Lloh3:
	adrp	x8, _WMI_SET_MCAST_FILTER_CMDID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_SET_MCAST_FILTER_CMDID@GOTPAGEOFF]
Lloh5:
	adrp	x9, _WMI_DEL_MCAST_FILTER_CMDID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WMI_DEL_MCAST_FILTER_CMDID@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w3, [x8]
Lloh7:
	adrp	x8, _NO_SYNC_WMIFLAG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NO_SYNC_WMIFLAG@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ath6kl_wmi_cmd_send
LBB0_5:
	ldr	w8, [x22, #4]
	cbnz	w8, LBB0_8
; %bb.6:
	ldr	w8, [x22, #8]
	cmp	w8, #94
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x22, #12]
	cmp	w8, #128
	b.lt	LBB0_3
LBB0_8:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_warn
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid multicast filter address\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATH6KL_MCAST_FILTER_MAC_ADDR_SIZE,4,2 ; @ATH6KL_MCAST_FILTER_MAC_ADDR_SIZE
	.comm	_WMI_SET_MCAST_FILTER_CMDID,4,2 ; @WMI_SET_MCAST_FILTER_CMDID
	.comm	_WMI_DEL_MCAST_FILTER_CMDID,4,2 ; @WMI_DEL_MCAST_FILTER_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ; @NO_SYNC_WMIFLAG
.subsections_via_symbols
