	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_tx_set_region               ## -- Begin function fm_tx_set_region
	.p2align	4, 0x90
_fm_tx_set_region:                      ## @fm_tx_set_region
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_FM_BAND_EUROPE_US@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_FM_BAND_JAPAN@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_fmerr
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movq	%rsi, -8(%rbp)
	movq	_TX_BAND_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	leaq	-8(%rbp), %rcx
	movl	$8, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_BAND_EUROPE_US,8,3          ## @FM_BAND_EUROPE_US
	.comm	_FM_BAND_JAPAN,8,3              ## @FM_BAND_JAPAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid band\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TX_BAND_SET,4,2                ## @TX_BAND_SET
	.comm	_REG_WR,4,2                     ## @REG_WR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_tx_set_region               ; -- Begin function fm_tx_set_region
	.p2align	2
_fm_tx_set_region:                      ; @fm_tx_set_region
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _FM_BAND_EUROPE_US@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM_BAND_EUROPE_US@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _FM_BAND_JAPAN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FM_BAND_JAPAN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_2
; %bb.1:
	str	x1, [sp, #8]
Lloh6:
	adrp	x8, _TX_BAND_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_BAND_SET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _REG_WR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_WR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	w4, #8
	mov	x5, #0
	mov	x6, #0
	bl	_fmc_send_cmd
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fmerr
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_BAND_EUROPE_US,8,3          ; @FM_BAND_EUROPE_US
	.comm	_FM_BAND_JAPAN,8,3              ; @FM_BAND_JAPAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid band\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TX_BAND_SET,4,2                ; @TX_BAND_SET
	.comm	_REG_WR,4,2                     ; @REG_WR
.subsections_via_symbols
