	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_tea575x_enum_freq_bands    ## -- Begin function snd_tea575x_enum_freq_bands
	.p2align	4, 0x90
_snd_tea575x_enum_freq_bands:           ## @snd_tea575x_enum_freq_bands
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rsi)
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movl	8(%rsi), %eax
	cmpl	$1, %eax
	je	LBB0_7
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:
	cmpl	$0, 8(%rdi)
	jne	LBB0_5
## %bb.6:
	movq	_BAND_FM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.8:
	movq	_BAND_AM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_BAND_FM_JAPAN@GOTPCREL(%rip), %rax
LBB0_9:
	movslq	(%rax), %rax
	movq	_bands@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	movups	(%rcx,%rax), %xmm0
	movups	%xmm0, (%rsi)
	xorl	%eax, %eax
	cmpl	$0, (%rdi)
	je	LBB0_10
## %bb.11:
	popq	%rbp
	retq
LBB0_10:
	movq	_V4L2_TUNER_CAP_HWSEEK_BOUNDED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 12(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BAND_FM_JAPAN,4,2              ## @BAND_FM_JAPAN
	.comm	_BAND_FM,4,2                    ## @BAND_FM
	.comm	_BAND_AM,4,2                    ## @BAND_AM
	.comm	_bands,8,3                      ## @bands
	.comm	_V4L2_TUNER_CAP_HWSEEK_BOUNDED,4,2 ## @V4L2_TUNER_CAP_HWSEEK_BOUNDED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_tea575x_enum_freq_bands    ; -- Begin function snd_tea575x_enum_freq_bands
	.p2align	2
_snd_tea575x_enum_freq_bands:           ; @snd_tea575x_enum_freq_bands
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	ldr	w8, [x1, #8]
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.3:
	cbnz	w8, LBB0_1
; %bb.4:
	ldr	w8, [x0, #8]
Lloh3:
	adrp	x9, _BAND_FM_JAPAN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BAND_FM_JAPAN@GOTPAGEOFF]
Lloh5:
	adrp	x10, _BAND_FM@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BAND_FM@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	b	LBB0_7
LBB0_5:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_1
; %bb.6:
Lloh7:
	adrp	x8, _BAND_AM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BAND_AM@GOTPAGEOFF]
LBB0_7:
Lloh9:
	adrp	x9, _bands@GOTPAGE
Lloh10:
	ldr	x9, [x9, _bands@GOTPAGEOFF]
	ldrsw	x8, [x8]
Lloh11:
	ldr	x9, [x9]
	ldr	q0, [x9, x8, lsl #4]
	str	q0, [x1]
	ldr	w8, [x0]
	cbz	w8, LBB0_9
; %bb.8:
	mov	w0, #0
	ret
LBB0_9:
	mov	w0, #0
Lloh12:
	adrp	x8, _V4L2_TUNER_CAP_HWSEEK_BOUNDED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_TUNER_CAP_HWSEEK_BOUNDED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x1, #12]
	orr	w8, w9, w8
	str	w8, [x1, #12]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BAND_FM_JAPAN,4,2              ; @BAND_FM_JAPAN
	.comm	_BAND_FM,4,2                    ; @BAND_FM
	.comm	_BAND_AM,4,2                    ; @BAND_AM
	.comm	_bands,8,3                      ; @bands
	.comm	_V4L2_TUNER_CAP_HWSEEK_BOUNDED,4,2 ; @V4L2_TUNER_CAP_HWSEEK_BOUNDED
.subsections_via_symbols
