	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_core_create             ## -- Begin function ath6kl_core_create
	.p2align	4, 0x90
_ath6kl_core_create:                    ## @ath6kl_core_create
	.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, %r14
	xorl	%eax, %eax
	callq	_ath6kl_cfg80211_create
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	movq	_ath6kl_p2p@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	setne	%cl
	movl	%ecx, (%r15)
	movq	%r14, 80(%r15)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%r15)
	leaq	76(%r15), %rdi
	callq	_spin_lock_init
	leaq	72(%r15), %rdi
	callq	_spin_lock_init
	leaq	68(%r15), %rdi
	callq	_spin_lock_init
	leaq	64(%r15), %rdi
	callq	_init_waitqueue_head
	leaq	60(%r15), %rdi
	movl	$1, %esi
	callq	_sema_init
	leaq	56(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movq	_WMI_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r15), %r14
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_SKIP_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_DESTROY_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	$0, 40(%r15)
	movl	$1, 12(%r15)
	movq	_DEF_LRSSI_ROAM_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_ATH6KL_STATE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	24(%r15), %rdi
	movq	_AP_MAX_NUM_STA@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.2:
	movq	24(%r15), %rcx
	movl	$16, %ebx
	xorl	%r12d, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rcx,%rbx), %rdi
	addq	$8, %rdi
	callq	_spin_lock_init
	movq	24(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	callq	_skb_queue_head_init
	movq	24(%r15), %rdi
	addq	%rbx, %rdi
	callq	_skb_queue_head_init
	movq	24(%r15), %rax
	movq	$0, -8(%rax,%rbx)
	leaq	(%rax,%rbx), %rdi
	addq	$-12, %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	24(%r15), %rcx
	movl	%eax, -16(%rcx,%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	addq	$32, %rbx
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	addq	$20, %rdi
	callq	_skb_queue_head_init
	movl	16(%r15), %edi
	movq	_DEF_AP_COUNTRY_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	callq	_memcpy
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_ath6kl_err
	movq	%r15, %rdi
	callq	_ath6kl_core_destroy
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ath6kl_p2p,4,2                 ## @ath6kl_p2p
	.comm	_WMI_ENABLED,4,2                ## @WMI_ENABLED
	.comm	_SKIP_SCAN,4,2                  ## @SKIP_SCAN
	.comm	_DESTROY_IN_PROGRESS,4,2        ## @DESTROY_IN_PROGRESS
	.comm	_DEF_LRSSI_ROAM_THRESHOLD,4,2   ## @DEF_LRSSI_ROAM_THRESHOLD
	.comm	_ATH6KL_STATE_OFF,4,2           ## @ATH6KL_STATE_OFF
	.comm	_AP_MAX_NUM_STA,4,2             ## @AP_MAX_NUM_STA
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate memory for sta aggregation information\n"

	.comm	_DEF_AP_COUNTRY_CODE,4,2        ## @DEF_AP_COUNTRY_CODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_core_create             ; -- Begin function ath6kl_core_create
	.p2align	2
_ath6kl_core_create:                    ; @ath6kl_core_create
	.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	x20, x0
	bl	_ath6kl_cfg80211_create
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _ath6kl_p2p@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ath6kl_p2p@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x19]
	str	x20, [x19, #80]
	movi.2s	v0, #1
	stur	d0, [x19, #4]
	add	x0, x19, #76
	bl	_spin_lock_init
	add	x0, x19, #72
	bl	_spin_lock_init
	add	x0, x19, #68
	bl	_spin_lock_init
	add	x0, x19, #64
	bl	_init_waitqueue_head
	add	x0, x19, #60
	mov	w21, #1
	mov	w1, #1
	bl	_sema_init
	add	x0, x19, #56
	bl	_INIT_LIST_HEAD
	add	x0, x19, #52
	bl	_INIT_LIST_HEAD
Lloh3:
	adrp	x8, _WMI_ENABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x20, x19, #48
	mov	x1, x20
	bl	_clear_bit
Lloh6:
	adrp	x8, _SKIP_SCAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SKIP_SCAN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
Lloh9:
	adrp	x8, _DESTROY_IN_PROGRESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DESTROY_IN_PROGRESS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	str	xzr, [x19, #40]
Lloh12:
	adrp	x8, _DEF_LRSSI_ROAM_THRESHOLD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEF_LRSSI_ROAM_THRESHOLD@GOTPAGEOFF]
	str	w21, [x19, #12]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ATH6KL_STATE_OFF@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ATH6KL_STATE_OFF@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	ldr	x0, [x19, #24]
Lloh18:
	adrp	x20, _AP_MAX_NUM_STA@GOTPAGE
Lloh19:
	ldr	x20, [x20, _AP_MAX_NUM_STA@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, #0
	mov	x22, #0
	ldr	x8, [x19, #24]
Lloh20:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh21:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x21
	add	x0, x8, #24
	bl	_spin_lock_init
	ldr	x8, [x19, #24]
	add	x8, x8, x21
	add	x0, x8, #20
	bl	_skb_queue_head_init
	ldr	x8, [x19, #24]
	add	x8, x8, x21
	add	x0, x8, #16
	bl	_skb_queue_head_init
	ldr	x8, [x19, #24]
	add	x8, x8, x21
	str	xzr, [x8, #8]
	add	x0, x8, #4
	bl	_INIT_LIST_HEAD
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kzalloc
	ldr	x8, [x19, #24]
	str	w0, [x8, x21]
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x20]
	add	x21, x21, #32
	cmp	x22, x9
	b.lt	LBB0_3
LBB0_5:
	add	x0, x19, #20
	bl	_skb_queue_head_init
	ldr	w0, [x19, #16]
Lloh22:
	adrp	x8, _DEF_AP_COUNTRY_CODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DEF_AP_COUNTRY_CODE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_memcpy
	b	LBB0_7
LBB0_6:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_err
	mov	x0, x19
	bl	_ath6kl_core_destroy
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ath6kl_p2p,4,2                 ; @ath6kl_p2p
	.comm	_WMI_ENABLED,4,2                ; @WMI_ENABLED
	.comm	_SKIP_SCAN,4,2                  ; @SKIP_SCAN
	.comm	_DESTROY_IN_PROGRESS,4,2        ; @DESTROY_IN_PROGRESS
	.comm	_DEF_LRSSI_ROAM_THRESHOLD,4,2   ; @DEF_LRSSI_ROAM_THRESHOLD
	.comm	_ATH6KL_STATE_OFF,4,2           ; @ATH6KL_STATE_OFF
	.comm	_AP_MAX_NUM_STA,4,2             ; @AP_MAX_NUM_STA
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate memory for sta aggregation information\n"

	.comm	_DEF_AP_COUNTRY_CODE,4,2        ; @DEF_AP_COUNTRY_CODE
.subsections_via_symbols
