	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_generate_band
_p54_generate_band:                     ## @p54_generate_band
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	cmpl	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	movq	8(%rsi), %rax
	movl	%ecx, %esi
	cmpl	$0, (%rax,%rsi,4)
	je	LBB0_2
## %bb.3:
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edi
	movl	(%r15), %edx
	movl	$32, %esi
	callq	_kcalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_17
## %bb.5:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_p54_fill_band_bitrates
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	8(%r14), %r8
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$0, (%r8,%rdx,4)
	je	LBB0_16
## %bb.7:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	$-1, %r12
	movl	$16, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	%r15d, %edx
	shlq	$5, %rdx
	leaq	(%rax,%rdx), %rdi
	movl	%r13d, (%rax,%rdx)
	movl	-4(%rsi,%rbx), %ecx
	movl	%ecx, 28(%rax,%rdx)
	movl	-8(%rsi,%rbx), %ecx
	movl	%ecx, 24(%rax,%rdx)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r9d
	movq	8(%rcx), %r15
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movl	(%r10), %esi
	shlq	$4, %rsi
	movq	%rdi, 8(%r15,%rsi)
	movq	_SURVEY_INFO_TIME@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movq	_SURVEY_INFO_NOISE_DBM@GOTPCREL(%rip), %r11
	orl	(%r11), %edi
	movq	_SURVEY_INFO_TIME_BUSY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_SURVEY_INFO_TIME_TX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movl	%edi, (%r15,%rsi)
	movl	%r9d, %r15d
	movl	(%r10), %ecx
	movl	%ecx, 4(%rax,%rdx)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incl	%r15d
	incl	(%r10)
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$20, %rbx
	cmpl	(%r8,%rdx,4), %r15d
	jae	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	incq	%r12
	cmpq	%rax, %r12
	jae	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r14), %rsi
	cmpl	%r13d, -16(%rsi,%rbx)
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-12(%rsi,%rbx), %r9d
	movq	_CHAN_HAS_ALL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r9d
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movq	_CHAN_HAS_CAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r9d, %ecx
	leaq	L_.str.1(%rip), %r8
	movq	%r8, %rdx
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rcx, %rdx
	movq	_CHAN_HAS_LIMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r9d, %ecx
	movq	%r8, %rcx
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rcx
	movq	_CHAN_HAS_CURVE@GOTPCREL(%rip), %rax
	andl	(%rax), %r9d
	leaq	L_.str.4(%rip), %rax
	cmoveq	%rax, %r8
	movl	-4(%rsi,%rbx), %eax
	movl	(%rsi,%rbx), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wiphy_err
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%r14), %r8
	jmp	LBB0_13
LBB0_14:
	testl	%r15d, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
## %bb.15:
	movl	%r15d, 8(%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rbx, %rcx
	movq	(%rax,%rdx,8), %rbx
	movq	%rcx, (%rax,%rdx,8)
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	jne	LBB0_17
	jmp	LBB0_18
LBB0_16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r13d, (%rax)
	setne	%cl
	leal	(%rcx,%rcx,2), %edx
	addl	$2, %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wiphy_err
	movq	_ENODATA@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_17:
	movq	16(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
LBB0_18:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CHAN_HAS_ALL,4,2               ## @CHAN_HAS_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s%s is/are missing for channel:%d [%d MHz].\n"

	.comm	_CHAN_HAS_CAL,4,2               ## @CHAN_HAS_CAL
L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	" [iqauto calibration data]"

	.comm	_CHAN_HAS_LIMIT,4,2             ## @CHAN_HAS_LIMIT
L_.str.3:                               ## @.str.3
	.asciz	" [output power limits]"

	.comm	_CHAN_HAS_CURVE,4,2             ## @CHAN_HAS_CURVE
L_.str.4:                               ## @.str.4
	.asciz	" [curve data]"

	.comm	_SURVEY_INFO_NOISE_DBM,4,2      ## @SURVEY_INFO_NOISE_DBM
	.comm	_SURVEY_INFO_TIME,4,2           ## @SURVEY_INFO_TIME
	.comm	_SURVEY_INFO_TIME_BUSY,4,2      ## @SURVEY_INFO_TIME_BUSY
	.comm	_SURVEY_INFO_TIME_TX,4,2        ## @SURVEY_INFO_TIME_TX
L_.str.5:                               ## @.str.5
	.asciz	"Disabling totally damaged %d GHz band\n"

	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_p54_generate_band
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_generate_band
_p54_generate_band:                     ; @p54_generate_band
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	w8, [x1]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x20, x3
	mov	x23, x1
	ldr	x8, [x1, #8]
	ldr	w8, [x8, w3, uxtw #2]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x22, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	ldr	x25, [x0, #8]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
Lloh3:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_19
; %bb.3:
	mov	x19, x0
	mov	w26, w20
	ldr	x8, [x23, #8]
	ldr	w0, [x8, x26, lsl #2]
	ldr	w2, [x27]
	mov	w1, #32
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_18
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_p54_fill_band_bitrates
	mov	x24, x0
	cbnz	w0, LBB0_18
; %bb.5:
	ldr	x8, [x23, #8]
	ldr	w9, [x8, x26, lsl #2]
	cbz	w9, LBB0_17
; %bb.6:
	mov	x28, #0
	mov	w14, #0
	mov	x24, #-1
Lloh5:
	adrp	x13, _CHAN_HAS_ALL@GOTPAGE
Lloh6:
	ldr	x13, [x13, _CHAN_HAS_ALL@GOTPAGEOFF]
	str	x19, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_10
LBB0_7:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_19
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x19, #16]
	mov	w11, w14
	add	x10, x10, x11, lsl #5
	str	w20, [x10]
	ldr	d0, [x9, #8]
	str	d0, [x10, #24]
	ldr	x9, [x25, #8]
	ldr	w11, [x22]
	add	x9, x9, x11, lsl #4
	str	x10, [x9, #8]
Lloh10:
	adrp	x11, _SURVEY_INFO_NOISE_DBM@GOTPAGE
Lloh11:
	ldr	x11, [x11, _SURVEY_INFO_NOISE_DBM@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
Lloh13:
	adrp	x12, _SURVEY_INFO_TIME@GOTPAGE
Lloh14:
	ldr	x12, [x12, _SURVEY_INFO_TIME@GOTPAGEOFF]
Lloh15:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh16:
	adrp	x12, _SURVEY_INFO_TIME_BUSY@GOTPAGE
Lloh17:
	ldr	x12, [x12, _SURVEY_INFO_TIME_BUSY@GOTPAGEOFF]
Lloh18:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh19:
	adrp	x12, _SURVEY_INFO_TIME_TX@GOTPAGE
Lloh20:
	ldr	x12, [x12, _SURVEY_INFO_TIME_TX@GOTPAGEOFF]
Lloh21:
	ldr	w12, [x12]
	orr	w11, w11, w12
	str	w11, [x9]
	ldr	w9, [x22]
	str	w9, [x10, #4]
	add	w14, w14, #1
	ldr	w9, [x22]
	add	w9, w9, #1
	str	w9, [x22]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x28, x28, #20
	ldr	w9, [x8, x26, lsl #2]
	cmp	w14, w9
	b.hs	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23]
	add	x24, x24, #1
	cmp	x24, x9
	b.hs	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x23, #16]
	ldr	w10, [x9, x28]
	cmp	w10, w20
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, x28
	ldr	w10, [x9, #4]
	ldr	w11, [x13]
	cmp	w10, w11
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x21]
Lloh22:
	adrp	x8, _CHAN_HAS_CAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CHAN_HAS_CAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w10
Lloh25:
	adrp	x15, l_.str.1@PAGE
Lloh26:
	add	x15, x15, l_.str.1@PAGEOFF
Lloh27:
	adrp	x8, l_.str.2@PAGE
Lloh28:
	add	x8, x8, l_.str.2@PAGEOFF
	csel	x8, x8, x15, eq
Lloh29:
	adrp	x11, _CHAN_HAS_LIMIT@GOTPAGE
Lloh30:
	ldr	x11, [x11, _CHAN_HAS_LIMIT@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	tst	w11, w10
Lloh32:
	adrp	x11, l_.str.3@PAGE
Lloh33:
	add	x11, x11, l_.str.3@PAGEOFF
	csel	x11, x11, x15, eq
Lloh34:
	adrp	x12, _CHAN_HAS_CURVE@GOTPAGE
Lloh35:
	ldr	x12, [x12, _CHAN_HAS_CURVE@GOTPAGEOFF]
Lloh36:
	ldr	w12, [x12]
	tst	w12, w10
Lloh37:
	adrp	x10, l_.str.4@PAGE
Lloh38:
	add	x10, x10, l_.str.4@PAGEOFF
	csel	x10, x10, x15, eq
	ldp	w9, w12, [x9, #12]
	stp	x12, x9, [sp, #24]
	stp	x11, x10, [sp, #8]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	x27, x26
	mov	x26, x25
	mov	x25, x13
	mov	x19, x21
	mov	x21, x22
	mov	x22, x14
	bl	_wiphy_err
	mov	x14, x22
	mov	x22, x21
	mov	x21, x19
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	mov	x13, x25
	mov	x25, x26
	mov	x26, x27
	ldr	x8, [x23, #8]
	b	LBB0_9
LBB0_14:
	cbz	w14, LBB0_17
; %bb.15:
	str	w14, [x19, #8]
	ldr	x8, [x25]
	lsl	x9, x26, #3
	ldr	x20, [x8, x9]
	str	x19, [x8, x9]
	cbz	x20, LBB0_20
; %bb.16:
	ldr	x0, [x20, #16]
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	w24, #0
	b	LBB0_19
LBB0_17:
Lloh41:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh43:
	ldr	w8, [x8]
	cmp	w8, w20
	mov	w8, #5
	mov	w9, #2
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wiphy_err
Lloh46:
	adrp	x8, _ENODATA@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_18:
	ldr	x0, [x19, #16]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
LBB0_19:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_20:
	mov	w24, #0
	b	LBB0_19
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CHAN_HAS_ALL,4,2               ; @CHAN_HAS_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s%s is/are missing for channel:%d [%d MHz].\n"

	.comm	_CHAN_HAS_CAL,4,2               ; @CHAN_HAS_CAL
l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	" [iqauto calibration data]"

	.comm	_CHAN_HAS_LIMIT,4,2             ; @CHAN_HAS_LIMIT
l_.str.3:                               ; @.str.3
	.asciz	" [output power limits]"

	.comm	_CHAN_HAS_CURVE,4,2             ; @CHAN_HAS_CURVE
l_.str.4:                               ; @.str.4
	.asciz	" [curve data]"

	.comm	_SURVEY_INFO_NOISE_DBM,4,2      ; @SURVEY_INFO_NOISE_DBM
	.comm	_SURVEY_INFO_TIME,4,2           ; @SURVEY_INFO_TIME
	.comm	_SURVEY_INFO_TIME_BUSY,4,2      ; @SURVEY_INFO_TIME_BUSY
	.comm	_SURVEY_INFO_TIME_TX,4,2        ; @SURVEY_INFO_TIME_TX
l_.str.5:                               ; @.str.5
	.asciz	"Disabling totally damaged %d GHz band\n"

	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_p54_generate_band
.subsections_via_symbols
