	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_chanctx_init               ## -- Begin function ath_chanctx_init
	.p2align	4, 0x90
_ath_chanctx_init:                      ## @ath_chanctx_init
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %edi
	callq	_ath9k_hw_common
	movq	(%rax), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %rdx
	shlq	$4, %rdx
	cmpl	$0, 8(%rax,%rdx)
	jne	LBB0_2
## %bb.1:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_2:
	movq	_ATH9K_NUM_CHANCTX@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_8
## %bb.3:
	shlq	$4, %rcx
	movq	(%rax,%rcx), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movq	_ATH9K_NUM_CHANCTX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movq	%r14, %rbx
	shlq	$5, %rbx
	leaq	(%r15,%rbx), %rdi
	addq	$24, %rdi
	movq	_NL80211_CHAN_HT20@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_cfg80211_chandef_create
	leaq	(%r15,%rbx), %rdi
	addq	$20, %rdi
	callq	_INIT_LIST_HEAD
	movq	_ATH_TXPOWER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15,%rbx)
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
	movl	%eax, (%r15,%rbx)
	movq	8(%r15,%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %r15
	addq	$8, %r15
	movl	$8, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rdi
	addq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	movq	(%r15), %rax
	leaq	(%rax,%r13), %rdi
	addq	$-4, %rdi
	callq	_INIT_LIST_HEAD
	movq	(%r15), %rax
	leaq	(%rax,%r13), %rdi
	addq	$-8, %rdi
	callq	_spin_lock_init
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %r13
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_ATH9K_NUM_CHANCTX,4,2          ## @ATH9K_NUM_CHANCTX
	.comm	_NL80211_CHAN_HT20,4,2          ## @NL80211_CHAN_HT20
	.comm	_ATH_TXPOWER_MAX,4,2            ## @ATH_TXPOWER_MAX
	.comm	_HZ,4,2                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_chanctx_init               ; -- Begin function ath_chanctx_init
	.p2align	2
_ath_chanctx_init:                      ; @ath_chanctx_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	w0, [x0, #8]
	bl	_ath9k_hw_common
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x10, x8, x9, lsl #4
	ldr	w10, [x10, #8]
Lloh3:
	adrp	x11, _NL80211_BAND_5GHZ@GOTPAGE
Lloh4:
	ldr	x11, [x11, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	w10, #0
	csel	x9, x11, x9, eq
Lloh6:
	adrp	x10, _ATH9K_NUM_CHANCTX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ATH9K_NUM_CHANCTX@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
	lsl	x9, x9, #4
	ldr	x20, [x8, x9]
Lloh9:
	adrp	x23, _NL80211_CHAN_HT20@GOTPAGE
Lloh10:
	ldr	x23, [x23, _NL80211_CHAN_HT20@GOTPAGEOFF]
Lloh11:
	adrp	x24, _ATH_TXPOWER_MAX@GOTPAGE
Lloh12:
	ldr	x24, [x24, _ATH_TXPOWER_MAX@GOTPAGEOFF]
Lloh13:
	adrp	x25, _HZ@GOTPAGE
Lloh14:
	ldr	x25, [x25, _HZ@GOTPAGEOFF]
	mov	w26, #26215
	movk	w26, #26214, lsl #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
Lloh15:
	adrp	x8, _ATH9K_NUM_CHANCTX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATH9K_NUM_CHANCTX@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	cmp	x22, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x19]
	add	x27, x8, x22, lsl #5
	add	x0, x27, #24
	ldr	w2, [x23]
	mov	x1, x20
	bl	_cfg80211_chandef_create
	add	x0, x27, #20
	bl	_INIT_LIST_HEAD
	ldr	w8, [x24]
	str	w8, [x27, #16]
	ldrsw	x8, [x25]
	mul	x8, x8, x26
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	str	w8, [x27]
	ldr	x0, [x27, #8]!
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
	mov	w21, #8
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27]
	add	x0, x8, x21
	bl	_INIT_LIST_HEAD
	ldr	x8, [x27]
	add	x8, x8, x21
	sub	x0, x8, #4
	bl	_INIT_LIST_HEAD
	ldr	x8, [x27]
	add	x8, x8, x21
	sub	x0, x8, #8
	bl	_spin_lock_init
	add	x28, x28, #1
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	add	x21, x21, #12
	cmp	x28, w0, sxtw
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_ATH9K_NUM_CHANCTX,4,2          ; @ATH9K_NUM_CHANCTX
	.comm	_NL80211_CHAN_HT20,4,2          ; @NL80211_CHAN_HT20
	.comm	_ATH_TXPOWER_MAX,4,2            ; @ATH_TXPOWER_MAX
	.comm	_HZ,4,2                         ; @HZ
.subsections_via_symbols
