	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_init_device              ## -- Begin function ath9k_init_device
	.p2align	4, 0x90
_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rsi), %r14
	callq	_ath9k_init_softc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	16(%r12), %r13
	movq	%r13, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ath9k_set_hw_capab
	movq	(%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.2:
	movq	_ATH_TXBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ath_tx_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movq	_ATH_RXBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ath_rx_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	%r12, %rdi
	callq	_ath9k_init_txpower_limits
	movq	%r14, %rdi
	callq	_ieee80211_register_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	%r13, %rdi
	callq	_ath9k_init_debug
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ath_err
LBB0_11:
	movq	%r14, %rdi
	callq	_ieee80211_unregister_hw
LBB0_12:
	movq	%r12, %rdi
	callq	_ath_rx_cleanup
LBB0_13:
	movq	%r12, %rdi
	callq	_ath9k_deinit_softc
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_ath_is_world_regd
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	%r12, %rdi
	callq	_ath_init_leds
	movq	%r12, %rdi
	callq	_ath_start_rfkill_poll
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_8:
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_regulatory_hint
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_ath9k_deinit_debug
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ath9k_reg_notifier,4,2         ## @ath9k_reg_notifier
	.comm	_ATH_TXBUF,4,2                  ## @ATH_TXBUF
	.comm	_ATH_RXBUF,4,2                  ## @ATH_RXBUF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to create debugfs files\n"

	.comm	_IEEE80211_TPT_LEDTRIG_FL_RADIO,4,2 ## @IEEE80211_TPT_LEDTRIG_FL_RADIO
	.comm	_ath9k_tpt_blink,4,2            ## @ath9k_tpt_blink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_init_device              ; -- Begin function ath9k_init_device
	.p2align	2
_ath9k_init_device:                     ; @ath9k_init_device
	.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	x19, x1
	ldr	x20, [x1]
	bl	_ath9k_init_softc
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	x23, [x19, #16]
	mov	x0, x23
	bl	_ath9k_hw_common
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_set_hw_capab
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh0:
	adrp	x8, _ath9k_reg_notifier@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ath9k_reg_notifier@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_ath_regd_init
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _ATH_TXBUF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH_TXBUF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ath_tx_init
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.3:
Lloh6:
	adrp	x8, _ATH_RXBUF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH_RXBUF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ath_rx_init
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_ath9k_init_txpower_limits
	mov	x0, x20
	bl	_ieee80211_register_hw
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x23
	bl	_ath9k_init_debug
	cbz	w0, LBB0_11
; %bb.6:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ath_err
LBB0_7:
	mov	x0, x20
	bl	_ieee80211_unregister_hw
LBB0_8:
	mov	x0, x19
	bl	_ath_rx_cleanup
LBB0_9:
	mov	x0, x19
	bl	_ath9k_deinit_softc
LBB0_10:
	mov	x0, x22
	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
LBB0_11:
	mov	x0, x21
	bl	_ath_is_world_regd
	cbz	w0, LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_ath_init_leds
	mov	x0, x19
	bl	_ath_start_rfkill_poll
	mov	w22, #0
	b	LBB0_10
LBB0_13:
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_regulatory_hint
	cbz	w0, LBB0_12
; %bb.14:
	mov	x22, x0
	mov	x0, x19
	bl	_ath9k_deinit_debug
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ath9k_reg_notifier,4,2         ; @ath9k_reg_notifier
	.comm	_ATH_TXBUF,4,2                  ; @ATH_TXBUF
	.comm	_ATH_RXBUF,4,2                  ; @ATH_RXBUF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to create debugfs files\n"

	.comm	_IEEE80211_TPT_LEDTRIG_FL_RADIO,4,2 ; @IEEE80211_TPT_LEDTRIG_FL_RADIO
	.comm	_ath9k_tpt_blink,4,2            ; @ath9k_tpt_blink
.subsections_via_symbols
