	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_update_regulatory_maxpower ## -- Begin function ath9k_hw_update_regulatory_maxpower
	.p2align	4, 0x90
_ath9k_hw_update_regulatory_maxpower:   ## @ath9k_hw_update_regulatory_maxpower
	.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
	movq	%rbx, %rdi
	callq	_ath9k_hw_regulatory
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_ar5416_get_ntxchains
	cmpl	$1, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$3, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.3:
	movq	_POWER_CORRECTION_FOR_TWO_CHAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_POWER_CORRECTION_FOR_THREE_CHAIN@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	addl	%eax, (%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_CORRECTION_FOR_TWO_CHAIN,4,2 ## @POWER_CORRECTION_FOR_TWO_CHAIN
	.comm	_POWER_CORRECTION_FOR_THREE_CHAIN,4,2 ## @POWER_CORRECTION_FOR_THREE_CHAIN
	.comm	_EEPROM,4,2                     ## @EEPROM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid chainmask configuration\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_update_regulatory_maxpower ; -- Begin function ath9k_hw_update_regulatory_maxpower
	.p2align	2
_ath9k_hw_update_regulatory_maxpower:   ; @ath9k_hw_update_regulatory_maxpower
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
	bl	_ath9k_hw_common
	mov	x20, x0
	mov	x0, x21
	bl	_ath9k_hw_regulatory
	mov	x19, x0
	ldr	w0, [x21]
	bl	_ar5416_get_ntxchains
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.1:
	cmp	w0, #3
	b.eq	LBB0_4
; %bb.2:
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _POWER_CORRECTION_FOR_TWO_CHAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POWER_CORRECTION_FOR_TWO_CHAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _POWER_CORRECTION_FOR_THREE_CHAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _POWER_CORRECTION_FOR_THREE_CHAIN@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh4:
	adrp	x8, _EEPROM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EEPROM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath_dbg
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_CORRECTION_FOR_TWO_CHAIN,4,2 ; @POWER_CORRECTION_FOR_TWO_CHAIN
	.comm	_POWER_CORRECTION_FOR_THREE_CHAIN,4,2 ; @POWER_CORRECTION_FOR_THREE_CHAIN
	.comm	_EEPROM,4,2                     ; @EEPROM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid chainmask configuration\n"

.subsections_via_symbols
