	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_rx_filter_alloc_field   ## -- Begin function wl1271_rx_filter_alloc_field
	.p2align	4, 0x90
_wl1271_rx_filter_alloc_field:          ## @wl1271_rx_filter_alloc_field
	.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
	movq	(%rdi), %r14
	movq	_WL1271_RX_FILTER_MAX_FIELDS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_wl1271_warning
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%r8, %r13
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r8, %rdi
	callq	_kzalloc
	shlq	$5, %r14
	movl	%eax, (%r15,%r14)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	(%r15,%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	incq	(%rbx)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movl	%eax, 24(%r15,%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15,%r14)
	movq	%r13, 8(%r15,%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1271_warning
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1271_RX_FILTER_MAX_FIELDS,8,3 ## @WL1271_RX_FILTER_MAX_FIELDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Max fields per RX filter. can't alloc another"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate RX filter pattern"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_rx_filter_alloc_field   ; -- Begin function wl1271_rx_filter_alloc_field
	.p2align	2
_wl1271_rx_filter_alloc_field:          ; @wl1271_rx_filter_alloc_field
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x24, [x0]
Lloh0:
	adrp	x8, _WL1271_RX_FILTER_MAX_FIELDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL1271_RX_FILTER_MAX_FIELDS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1271_warning
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x25, [x0, #8]
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x4
	bl	_kzalloc
	add	x24, x25, x24, lsl #5
	str	w0, [x24]
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x23]
	add	x8, x8, #1
	str	x8, [x23]
	mov	x0, x22
	bl	_cpu_to_le16
	str	w0, [x24, #24]
	stp	x19, x21, [x24, #8]
	ldr	w0, [x24]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_warning
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1271_RX_FILTER_MAX_FIELDS,8,3 ; @WL1271_RX_FILTER_MAX_FIELDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Max fields per RX filter. can't alloc another"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate RX filter pattern"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
