	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_eeprom_bin2freq
_ath5k_eeprom_bin2freq:                 ## @ath5k_eeprom_bin2freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_AR5K_EEPROM_CHANNEL_DIS@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_8
## %bb.1:
	movq	_AR5K_EEPROM_MODE_11A@GOTPCREL(%rip), %r8
	movq	(%rdi), %rcx
	movq	_AR5K_EEPROM_VERSION_3_2@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	%edx, (%r8)
	jne	LBB0_4
## %bb.2:
	cmpq	%rsi, %rcx
	jle	LBB0_6
## %bb.3:
	leal	(%rax,%rax,4), %eax
	addl	$4800, %eax                     ## imm = 0x12C0
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	cmpq	%rsi, %rcx
	jle	LBB0_7
## %bb.5:
	addl	$2300, %eax                     ## imm = 0x8FC
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	leal	(%rax,%rax), %ecx
	cmpl	$63, %eax
	leal	310(%rax,%rax,4), %edx
	leal	(%rcx,%rcx,4), %eax
	cmovgel	%edx, %eax
	addl	$5100, %eax                     ## imm = 0x13EC
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
	addl	$2400, %eax                     ## imm = 0x960
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_CHANNEL_DIS,4,2    ## @AR5K_EEPROM_CHANNEL_DIS
	.comm	_AR5K_EEPROM_MODE_11A,4,2       ## @AR5K_EEPROM_MODE_11A
	.comm	_AR5K_EEPROM_VERSION_3_2,8,3    ## @AR5K_EEPROM_VERSION_3_2
	.no_dead_strip	_ath5k_eeprom_bin2freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_eeprom_bin2freq
_ath5k_eeprom_bin2freq:                 ; @ath5k_eeprom_bin2freq
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AR5K_EEPROM_CHANNEL_DIS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_EEPROM_CHANNEL_DIS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _AR5K_EEPROM_MODE_11A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_EEPROM_MODE_11A@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _AR5K_EEPROM_VERSION_3_2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_3_2@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	w10, w2
	b.ne	LBB0_4
; %bb.2:
	cmp	x8, x9
	b.le	LBB0_6
; %bb.3:
	add	w8, w1, w1, lsl #2
	mov	w9, #4800
	add	w0, w8, w9
	ret
LBB0_4:
	cmp	x8, x9
	b.le	LBB0_7
; %bb.5:
	add	w0, w1, #2300
	ret
LBB0_6:
	add	w8, w1, w1, lsl #2
	add	w9, w8, #310
	lsl	w8, w8, #1
	cmp	w1, #62
	csel	w8, w9, w8, gt
	mov	w9, #5100
	add	w0, w8, w9
	ret
LBB0_7:
	add	w1, w1, #2400
LBB0_8:
	mov	x0, x1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_CHANNEL_DIS,4,2    ; @AR5K_EEPROM_CHANNEL_DIS
	.comm	_AR5K_EEPROM_MODE_11A,4,2       ; @AR5K_EEPROM_MODE_11A
	.comm	_AR5K_EEPROM_VERSION_3_2,8,3    ; @AR5K_EEPROM_VERSION_3_2
	.no_dead_strip	_ath5k_eeprom_bin2freq
.subsections_via_symbols
