	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_init_device
_ath9k_init_device:                     ## @ath9k_init_device
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	48(%rdi), %r14
	callq	_ath9k_init_priv
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	(%r12), %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ath9k_set_hw_capab
	movq	%r12, %rdi
	callq	_ath9k_init_firmware_version
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movq	48(%r12), %rax
	movl	(%rax), %esi
	movq	_ath9k_reg_notifier@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ath_regd_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movq	%r12, %rdi
	callq	_ath9k_tx_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	%r12, %rdi
	callq	_ath9k_rx_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	(%r12), %rdi
	callq	_ath9k_hw_disable
	movq	%r14, %rdi
	callq	_ieee80211_register_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	%r15, %rdi
	callq	_ath_is_world_regd
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	(%r12), %rdi
	callq	_ath9k_htc_init_debug
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ath_err
	jmp	LBB0_10
LBB0_7:
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_regulatory_hint
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:
	movq	%r14, %rdi
	callq	_ieee80211_unregister_hw
LBB0_11:
	movq	%r12, %rdi
	callq	_ath9k_rx_cleanup
LBB0_12:
	movq	%r12, %rdi
	callq	_ath9k_tx_cleanup
LBB0_13:
	movq	%r12, %rdi
	callq	_ath9k_deinit_priv
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.15:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r12), %ecx
	movl	36(%r12), %r8d
	movl	32(%r12), %r9d
	movl	28(%r12), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	24(%r12), %r11d
	movl	20(%r12), %r13d
	movl	16(%r12), %ebx
	movl	8(%r12), %eax
	movl	12(%r12), %r10d
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	pushq	%rax
	pushq	%r10
	pushq	%rbx
	pushq	%r13
	pushq	%r11
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	callq	_ath_dbg
	addq	$48, %rsp
	movq	(%r12), %rdi
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$64, %edx
	callq	_ath9k_hw_name
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wiphy_info
	movq	%r12, %rdi
	callq	_ath9k_init_leds
	movq	%r12, %rdi
	callq	_ath9k_start_rfkill_poll
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ath9k_reg_notifier,4,2         ## @ath9k_reg_notifier
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to create debugfs files\n"

	.comm	_CONFIG,4,2                     ## @CONFIG
L_.str.1:                               ## @.str.1
	.asciz	"WMI:%d, BCN:%d, CAB:%d, UAPSD:%d, MGMT:%d, BE:%d, BK:%d, VI:%d, VO:%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s\n"

	.comm	_IEEE80211_TPT_LEDTRIG_FL_RADIO,4,2 ## @IEEE80211_TPT_LEDTRIG_FL_RADIO
	.comm	_ath9k_htc_tpt_blink,4,2        ## @ath9k_htc_tpt_blink
	.no_dead_strip	_ath9k_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_init_device
_ath9k_init_device:                     ; @ath9k_init_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x20, [x0, #48]
	bl	_ath9k_init_priv
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.1:
	ldr	x0, [x19]
	bl	_ath9k_hw_common
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_set_hw_capab
	mov	x0, x19
	bl	_ath9k_init_firmware_version
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	x8, [x19, #48]
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ath9k_reg_notifier@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ath9k_reg_notifier@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_ath_regd_init
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.3:
	mov	x0, x19
	bl	_ath9k_tx_init
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.4:
	mov	x0, x19
	bl	_ath9k_rx_init
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	x0, [x19]
	bl	_ath9k_hw_disable
	mov	x0, x20
	bl	_ieee80211_register_hw
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.6:
	mov	x0, x21
	bl	_ath_is_world_regd
	cbz	w0, LBB0_9
LBB0_7:
	ldr	x0, [x19]
	bl	_ath9k_htc_init_debug
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.8:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ath_err
	b	LBB0_10
LBB0_9:
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_regulatory_hint
	mov	x22, x0
	cbz	w0, LBB0_7
LBB0_10:
	mov	x0, x20
	bl	_ieee80211_unregister_hw
LBB0_11:
	mov	x0, x19
	bl	_ath9k_rx_cleanup
LBB0_12:
	mov	x0, x19
	bl	_ath9k_tx_cleanup
LBB0_13:
	mov	x0, x19
	bl	_ath9k_deinit_priv
LBB0_14:
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x22
	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
	add	sp, sp, #144
	ret
LBB0_16:
Lloh11:
	adrp	x8, _CONFIG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldp	w4, w3, [x19, #36]
	ldp	w6, w5, [x19, #28]
	ldp	w8, w7, [x19, #20]
	ldp	w10, w9, [x19, #12]
	ldr	w11, [x19, #8]
	stp	w10, w11, [sp, #8]
	stp	w8, w9, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_ath_dbg
	ldr	x0, [x19]
	add	x1, sp, #24
	mov	w2, #64
	bl	_ath9k_hw_name
	ldr	w0, [x20]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #24
	bl	_wiphy_info
	mov	x0, x19
	bl	_ath9k_init_leds
	mov	x0, x19
	bl	_ath9k_start_rfkill_poll
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ath9k_reg_notifier,4,2         ; @ath9k_reg_notifier
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to create debugfs files\n"

	.comm	_CONFIG,4,2                     ; @CONFIG
l_.str.1:                               ; @.str.1
	.asciz	"WMI:%d, BCN:%d, CAB:%d, UAPSD:%d, MGMT:%d, BE:%d, BK:%d, VI:%d, VO:%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s\n"

	.comm	_IEEE80211_TPT_LEDTRIG_FL_RADIO,4,2 ; @IEEE80211_TPT_LEDTRIG_FL_RADIO
	.comm	_ath9k_htc_tpt_blink,4,2        ; @ath9k_htc_tpt_blink
	.no_dead_strip	_ath9k_init_device
.subsections_via_symbols
