	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_cfg80211_iface_combinations_from_fw ## -- Begin function wil_cfg80211_iface_combinations_from_fw
	.p2align	4, 0x90
_wil_cfg80211_iface_combinations_from_fw: ## @wil_cfg80211_iface_combinations_from_fw
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_wil_to_wiphy
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	jmp	LBB0_21
LBB0_2:
	movq	%rax, %r13
	movq	8(%r14), %rbx
	movl	16(%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, %r15
	xorl	%edi, %edi
	testl	%r15d, %r15d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_9
## %bb.3:
	leal	-1(%r15), %ecx
	movl	%r15d, %eax
	andl	$3, %eax
	cmpl	$3, %ecx
	jb	LBB0_6
## %bb.4:
	movl	%r15d, %ecx
	andl	$-4, %ecx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rdx
	addl	%edx, %edi
	movq	8(%rbx), %rsi
	movslq	(%rsi,%rdx,8), %rbx
	addl	%ebx, %edi
	movq	8(%rsi,%rdx,8), %rdx
	movslq	(%rdx,%rbx,8), %rsi
	addl	%esi, %edi
	movq	8(%rdx,%rbx,8), %rdx
	movslq	(%rdx,%rsi,8), %rbx
	addl	%ebx, %edi
	shlq	$3, %rbx
	addq	8(%rdx,%rsi,8), %rbx
	addl	$-4, %ecx
	jne	LBB0_5
LBB0_6:
	testl	%eax, %eax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rcx
	addl	%ecx, %edi
	shlq	$3, %rcx
	addq	8(%rbx), %rcx
	movq	%rcx, %rbx
	decl	%eax
	jne	LBB0_7
LBB0_8:
	movslq	%edi, %rdi
	shlq	$4, %rdi
LBB0_9:
	movl	%r15d, %eax
	shll	$5, %eax
	addl	%eax, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r14
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_18
## %bb.12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rax
	shlq	$32, %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %r13
	sarq	$27, %rax
	movq	%r14, %rbx
	addq	%rax, %rbx
	movl	%ecx, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	cltq
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, 8(%r14,%rcx)
	leaq	(%r15,%rax,8), %r13
	shlq	$4, %rax
	addq	%rax, %rbx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	cmpq	-80(%rbp), %rdx                 ## 8-byte Folded Reload
	je	LBB0_18
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	24(%r13), %ecx
	movq	%rdx, %rsi
	shlq	$5, %rsi
	movl	%ecx, 24(%r14,%rsi)
	movl	20(%r13), %r8d
	movl	%r8d, 20(%r14,%rsi)
	movl	16(%r13), %r9d
	movl	%r9d, 16(%r14,%rsi)
	movl	(%r13), %eax
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r14,%rsi)
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	movq	8(%r13), %r15
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	addq	$8, %rbx
	movq	%r12, %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r15,%r12,8), %edi
	callq	_le16_to_cpu
	movq	%rax, (%rbx)
	movl	(%r15,%r12,8), %edi
	callq	_le16_to_cpu
	movq	%rax, -8(%rbx)
	movq	(%rbx), %rcx
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	incq	%r12
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %r12
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_18:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r12)
	movq	_WIL_MAX_VIFS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	cmpl	%edx, %eax
	jl	LBB0_20
## %bb.19:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_wil_info
	movl	(%rbx), %eax
	movl	%eax, (%r12)
LBB0_20:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	jmp	LBB0_21
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iface_combinations already set, skipping\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"iface_combination %d: max_if %d, num_ch %d, bi_match %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"limit %d: max %d types 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"multiple VIFs supported, n_mids %d\n"

	.comm	_WIL_MAX_VIFS,4,2               ## @WIL_MAX_VIFS
L_.str.4:                               ## @.str.4
	.asciz	"limited number of VIFs supported(%d, FW %d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_cfg80211_iface_combinations_from_fw ; -- Begin function wil_cfg80211_iface_combinations_from_fw
	.p2align	2
_wil_cfg80211_iface_combinations_from_fw: ; @wil_cfg80211_iface_combinations_from_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x19, x0
	bl	_wil_to_wiphy
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_misc
	mov	w0, #0
	b	LBB0_18
LBB0_2:
	mov	x21, x0
	ldr	x20, [x23, #8]
	ldr	w0, [x23, #16]
	bl	_le16_to_cpu
	mov	x22, x0
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w8, #0
	mov	x9, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [x20]
	add	w8, w10, w8
	ldr	x11, [x20, #8]
	add	x20, x11, x10, lsl #3
	subs	w9, w9, #1
	b.ne	LBB0_4
; %bb.5:
	sbfiz	x8, x8, #4, #32
	b	LBB0_7
LBB0_6:
	mov	x8, #0
LBB0_7:
	add	w0, w8, w22, lsl #5
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_17
; %bb.8:
	stp	x21, x23, [sp, #40]             ; 16-byte Folded Spill
	str	x22, [sp, #56]                  ; 8-byte Folded Spill
	cmp	w22, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x26, #0
	ldp	x10, x9, [sp, #48]              ; 16-byte Folded Reload
	lsl	x8, x9, #32
	ldr	x21, [x10, #8]
	ldr	x10, [sp, #72]                  ; 8-byte Folded Reload
	add	x27, x10, x8, asr #27
	and	x8, x9, #0xffffffff
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
Lloh5:
	adrp	x25, l_.str.2@PAGE
Lloh6:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	str	x27, [x20, #8]
	add	x27, x27, w8, sxtw #4
	add	x21, x22, w8, sxtw #3
	add	x26, x26, #1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	cmp	x26, x8
	b.eq	LBB0_14
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x20, x8, x26, lsl #5
	ldr	w8, [x21, #24]
	str	w8, [x20, #24]
	ldp	w10, w9, [x21, #16]
	stp	w10, w9, [x20, #16]
	ldr	w11, [x21]
	str	w11, [x20]
	stp	x9, x10, [sp, #16]
	stp	x26, x8, [sp]
	mov	x0, x19
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wil_dbg_misc
	ldr	x22, [x21, #8]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x24, #0
	add	x23, x22, #4
	add	x28, x27, #8
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x23]
	bl	_le16_to_cpu
	str	x0, [x28]
	ldur	w0, [x23, #-4]
	bl	_le16_to_cpu
	stur	x0, [x28, #-8]
	ldr	x8, [x28], #16
	stp	x8, x0, [sp, #8]
	str	x24, [sp]
	mov	x0, x19
	mov	x1, x25
	bl	_wil_dbg_misc
	add	x24, x24, #1
	ldrsw	x8, [x21]
	add	x23, x23, #8
	cmp	x24, x8
	b.lt	LBB0_13
	b	LBB0_10
LBB0_14:
	ldr	x20, [sp, #48]                  ; 8-byte Folded Reload
	ldr	w8, [x20]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_misc
	ldr	w8, [x20]
	add	w3, w8, #1
	str	w3, [x19]
Lloh11:
	adrp	x20, _WIL_MAX_VIFS@GOTPAGE
Lloh12:
	ldr	x20, [x20, _WIL_MAX_VIFS@GOTPAGEOFF]
	ldr	w2, [x20]
	cmp	w8, w2
	b.lt	LBB0_16
; %bb.15:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_wil_info
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_16:
	mov	w0, #0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	str	w9, [x8]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	str	x9, [x8, #8]
	b	LBB0_18
LBB0_17:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iface_combinations already set, skipping\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"iface_combination %d: max_if %d, num_ch %d, bi_match %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"limit %d: max %d types 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"multiple VIFs supported, n_mids %d\n"

	.comm	_WIL_MAX_VIFS,4,2               ; @WIL_MAX_VIFS
l_.str.4:                               ; @.str.4
	.asciz	"limited number of VIFs supported(%d, FW %d)\n"

.subsections_via_symbols
