	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_regd_get_band_ctl          ## -- Begin function ath_regd_get_band_ctl
	.p2align	4, 0x90
_ath_regd_get_band_ctl:                 ## @ath_regd_get_band_ctl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SD_NO_CTL@GOTPCREL(%rip), %r15
	cmpq	$0, 16(%rdi)
	je	LBB0_11
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CTRY_DEFAULT@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_ath_regd_get_eepromRD
	movq	%rax, %rdi
	callq	_is_wwr_sku
	testq	%rax, %rax
	jne	LBB0_11
LBB0_3:
	movq	%rbx, %rdi
	callq	_ath_regd_get_eepromRD
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.4:
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_5
## %bb.10:
	cltq
	leaq	l_switch.table.ath_regd_get_band_ctl(%rip), %rcx
	movq	(%rcx,%rax,8), %r15
	jmp	LBB0_11
LBB0_5:
	cmpl	$131, %r14d
	je	LBB0_9
## %bb.6:
	cmpl	$132, %r14d
	jne	LBB0_7
## %bb.8:
	movq	16(%rbx), %r15
	addq	$4, %r15
	jmp	LBB0_11
LBB0_9:
	movq	16(%rbx), %r15
	jmp	LBB0_11
LBB0_7:
	movq	_NO_CTL@GOTPCREL(%rip), %r15
LBB0_11:
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRY_DEFAULT,8,3               ## @CTRY_DEFAULT
	.comm	_SD_NO_CTL,4,2                  ## @SD_NO_CTL
	.comm	_CTL_FCC,4,2                    ## @CTL_FCC
	.comm	_CTL_ETSI,4,2                   ## @CTL_ETSI
	.comm	_CTL_MKK,4,2                    ## @CTL_MKK
	.comm	_NO_CTL,4,2                     ## @NO_CTL
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ath_regd_get_band_ctl
l_switch.table.ath_regd_get_band_ctl:
	.quad	_CTL_MKK
	.quad	_CTL_FCC
	.quad	_CTL_ETSI

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_regd_get_band_ctl          ; -- Begin function ath_regd_get_band_ctl
	.p2align	2
_ath_regd_get_band_ctl:                 ; @ath_regd_get_band_ctl
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _CTRY_DEFAULT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CTRY_DEFAULT@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_ath_regd_get_eepromRD
	bl	_is_wwr_sku
	cbz	x0, LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _SD_NO_CTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SD_NO_CTL@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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_5:
	mov	x0, x19
	bl	_ath_regd_get_eepromRD
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_8
; %bb.7:
Lloh4:
	adrp	x9, l_switch.table.ath_regd_get_band_ctl@PAGE
Lloh5:
	add	x9, x9, l_switch.table.ath_regd_get_band_ctl@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_4
LBB0_8:
	cmp	w20, #131
	b.eq	LBB0_11
; %bb.9:
	cmp	w20, #132
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x19, #16]
	add	x8, x8, #4
	b	LBB0_4
LBB0_11:
	ldr	x8, [x19, #16]
	b	LBB0_4
LBB0_12:
Lloh6:
	adrp	x8, _NO_CTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NO_CTL@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRY_DEFAULT,8,3               ; @CTRY_DEFAULT
	.comm	_SD_NO_CTL,4,2                  ; @SD_NO_CTL
	.comm	_CTL_FCC,4,2                    ; @CTL_FCC
	.comm	_CTL_ETSI,4,2                   ; @CTL_ETSI
	.comm	_CTL_MKK,4,2                    ; @CTL_MKK
	.comm	_NO_CTL,4,2                     ; @NO_CTL
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ath_regd_get_band_ctl
l_switch.table.ath_regd_get_band_ctl:
	.quad	_CTL_MKK
	.quad	_CTL_FCC
	.quad	_CTL_ETSI

.subsections_via_symbols
