	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ath9k_hw_init_config
LCPI0_0:
	.long	1                               ## 0x1
	.long	6                               ## 0x6
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ath9k_hw_init_config:                  ## @ath9k_hw_init_config
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,6,0,1]
	movups	%xmm0, (%rbx)
	movl	$1, 16(%rbx)
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	movl	$250, %eax
	movl	$500, %ecx                      ## imm = 0x1F4
	cmovel	%eax, %ecx
	movl	$700, %eax                      ## imm = 0x2BC
	movl	$2000, %edx                     ## imm = 0x7D0
	cmovel	%eax, %edx
	movl	%ecx, 20(%rbx)
	movl	%edx, 24(%rbx)
	movq	%rbx, %rdi
	callq	_AR_SREV_9462
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_AR_SREV_9565
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movl	$7, 28(%rbx)
LBB0_3:
	xorl	%eax, %eax
	callq	_num_possible_cpus
	cmpl	$2, %eax
	jl	LBB0_5
## %bb.4:
	movq	_SER_REG_MODE_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
LBB0_5:
	movq	_NR_CPUS@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	movq	32(%rbx), %rcx
	jl	LBB0_14
## %bb.6:
	movq	_SER_REG_MODE_AUTO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_14
## %bb.7:
	movq	56(%rbx), %rax
	movq	_AR_SREV_VERSION_5416_PCI@GOTPCREL(%rip), %rcx
	movq	_SER_REG_MODE_ON@GOTPCREL(%rip), %r15
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.8:
	movq	%rbx, %rdi
	callq	_AR_SREV_9160
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_AR_SREV_9280
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_AR_SREV_9287
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	cmpl	$0, 48(%rbx)
	je	LBB0_13
LBB0_12:
	movq	_SER_REG_MODE_OFF@GOTPCREL(%rip), %r15
LBB0_13:
	movq	(%r15), %rcx
	movq	%rcx, 32(%rbx)
LBB0_14:
	movq	_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath_dbg
	movq	%rbx, %rdi
	callq	_AR_SREV_9285
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_AR_SREV_9271
	testq	%rax, %rax
	je	LBB0_17
LBB0_16:
	movq	_MAX_TX_FIFO_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%eax
LBB0_18:
	movl	%eax, 40(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_MAX_TX_FIFO_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SER_REG_MODE_AUTO,8,3          ## @SER_REG_MODE_AUTO
	.comm	_NR_CPUS,4,2                    ## @NR_CPUS
	.comm	_AR_SREV_VERSION_5416_PCI,8,3   ## @AR_SREV_VERSION_5416_PCI
	.comm	_SER_REG_MODE_ON,8,3            ## @SER_REG_MODE_ON
	.comm	_SER_REG_MODE_OFF,8,3           ## @SER_REG_MODE_OFF
	.comm	_RESET,4,2                      ## @RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"serialize_regmode is %d\n"

	.comm	_MAX_TX_FIFO_THRESHOLD,4,2      ## @MAX_TX_FIFO_THRESHOLD
	.no_dead_strip	_ath9k_hw_init_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ath9k_hw_init_config
lCPI0_0:
	.long	1                               ; 0x1
	.long	6                               ; 0x6
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	500                             ; 0x1f4
	.long	2000                            ; 0x7d0
lCPI0_2:
	.long	250                             ; 0xfa
	.long	700                             ; 0x2bc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ath9k_hw_init_config:                  ; @ath9k_hw_init_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ath9k_hw_common
	mov	x20, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x19]
	mov	w8, #1
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cmp	x0, #0
	cset	w8, eq
	dup.2s	v0, w8
	shl.2s	v0, v0, #31
	cmlt.2s	v0, v0, #0
Lloh2:
	adrp	x8, lCPI0_1@PAGE
Lloh3:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
Lloh4:
	adrp	x8, lCPI0_2@PAGE
Lloh5:
	ldr	d2, [x8, lCPI0_2@PAGEOFF]
	bsl.8b	v0, v2, v1
	stur	d0, [x19, #20]
	mov	x0, x19
	bl	_AR_SREV_9462
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_AR_SREV_9565
	cbz	x0, LBB0_3
LBB0_2:
	mov	w8, #7
	str	w8, [x19, #28]
LBB0_3:
	bl	_num_possible_cpus
Lloh6:
	adrp	x8, _SER_REG_MODE_AUTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SER_REG_MODE_AUTO@GOTPAGEOFF]
	cmp	w0, #2
	b.lt	LBB0_5
; %bb.4:
	ldr	x9, [x8]
	str	x9, [x19, #32]
LBB0_5:
Lloh8:
	adrp	x9, _NR_CPUS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NR_CPUS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	x3, [x19, #32]
	ldr	x8, [x8]
	cmp	w9, #2
	ccmp	x3, x8, #0, ge
	b.ne	LBB0_14
; %bb.6:
	ldr	x8, [x19, #56]
Lloh11:
	adrp	x9, _AR_SREV_VERSION_5416_PCI@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AR_SREV_VERSION_5416_PCI@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.7:
	mov	x0, x19
	bl	_AR_SREV_9160
	cbnz	x0, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_AR_SREV_9280
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_AR_SREV_9287
	cbz	x0, LBB0_11
LBB0_10:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _SER_REG_MODE_OFF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SER_REG_MODE_OFF@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh16:
	adrp	x8, _SER_REG_MODE_ON@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SER_REG_MODE_ON@GOTPAGEOFF]
LBB0_13:
	ldr	x3, [x8]
	str	x3, [x19, #32]
LBB0_14:
Lloh18:
	adrp	x8, _RESET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
	mov	x0, x19
	bl	_AR_SREV_9285
	cbnz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_AR_SREV_9271
	cbz	x0, LBB0_18
LBB0_16:
Lloh23:
	adrp	x8, _MAX_TX_FIFO_THRESHOLD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX_TX_FIFO_THRESHOLD@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	asr	w8, w8, #1
LBB0_17:
	str	w8, [x19, #40]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh26:
	adrp	x8, _MAX_TX_FIFO_THRESHOLD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAX_TX_FIFO_THRESHOLD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	b	LBB0_17
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SER_REG_MODE_AUTO,8,3          ; @SER_REG_MODE_AUTO
	.comm	_NR_CPUS,4,2                    ; @NR_CPUS
	.comm	_AR_SREV_VERSION_5416_PCI,8,3   ; @AR_SREV_VERSION_5416_PCI
	.comm	_SER_REG_MODE_ON,8,3            ; @SER_REG_MODE_ON
	.comm	_SER_REG_MODE_OFF,8,3           ; @SER_REG_MODE_OFF
	.comm	_RESET,4,2                      ; @RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"serialize_regmode is %d\n"

	.comm	_MAX_TX_FIFO_THRESHOLD,4,2      ; @MAX_TX_FIFO_THRESHOLD
	.no_dead_strip	_ath9k_hw_init_config
.subsections_via_symbols
