	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1273_fm_get_freq
_wl1273_fm_get_freq:                    ## @wl1273_fm_get_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	_WL1273_MODE_RX@GOTPCREL(%rip), %rcx
	movq	(%rdi), %rdx
	movq	8(%rdi), %rax
	cmpq	(%rcx), %rdx
	jne	LBB0_6
## %bb.1:
	movq	_WL1273_FREQ_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-12(%rbp), %rdx
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	8(%rbx), %edi
	movl	-12(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	(%rbx), %rax
	movq	_WL1273_BAND_JAPAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_WL1273_BAND_JAPAN_LOW@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	movq	_WL1273_CHANL_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-12(%rbp), %rdx
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	-12(%rbp), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	jmp	LBB0_8
LBB0_5:
	movq	_WL1273_BAND_OTHER_LOW@GOTPCREL(%rip), %rcx
LBB0_4:
	imull	$50, -12(%rbp), %eax
	addl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1273_MODE_RX,8,3             ## @WL1273_MODE_RX
	.comm	_WL1273_FREQ_SET,4,2            ## @WL1273_FREQ_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freq get: 0x%04x\n"

	.comm	_WL1273_BAND_JAPAN,8,3          ## @WL1273_BAND_JAPAN
	.comm	_WL1273_BAND_JAPAN_LOW,4,2      ## @WL1273_BAND_JAPAN_LOW
	.comm	_WL1273_BAND_OTHER_LOW,4,2      ## @WL1273_BAND_OTHER_LOW
	.comm	_WL1273_CHANL_SET,4,2           ## @WL1273_CHANL_SET
	.no_dead_strip	_wl1273_fm_get_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1273_fm_get_freq
_wl1273_fm_get_freq:                    ; @wl1273_fm_get_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _WL1273_MODE_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL1273_MODE_RX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldp	x10, x8, [x0]
	cmp	x10, x9
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _WL1273_FREQ_SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WL1273_FREQ_SET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x2, sp, #12
	blr	x8
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w0, [x19, #8]
	ldr	w2, [sp, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _WL1273_BAND_JAPAN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WL1273_BAND_JAPAN@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _WL1273_BAND_JAPAN_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WL1273_BAND_JAPAN_LOW@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh13:
	adrp	x9, _WL1273_CHANL_SET@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WL1273_CHANL_SET@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	add	x2, sp, #12
	blr	x8
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w8, [sp, #12]
	add	w8, w8, w8, lsl #2
	lsl	w0, w8, #1
	b	LBB0_8
LBB0_6:
Lloh16:
	adrp	x8, _WL1273_BAND_OTHER_LOW@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WL1273_BAND_OTHER_LOW@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	mov	w10, #50
	madd	w0, w9, w10, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1273_MODE_RX,8,3             ; @WL1273_MODE_RX
	.comm	_WL1273_FREQ_SET,4,2            ; @WL1273_FREQ_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freq get: 0x%04x\n"

	.comm	_WL1273_BAND_JAPAN,8,3          ; @WL1273_BAND_JAPAN
	.comm	_WL1273_BAND_JAPAN_LOW,4,2      ; @WL1273_BAND_JAPAN_LOW
	.comm	_WL1273_BAND_OTHER_LOW,4,2      ; @WL1273_BAND_OTHER_LOW
	.comm	_WL1273_CHANL_SET,4,2           ; @WL1273_CHANL_SET
	.no_dead_strip	_wl1273_fm_get_freq
.subsections_via_symbols
