	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_tea575x_hw_init            ## -- Begin function snd_tea575x_hw_init
	.p2align	4, 0x90
_snd_tea575x_hw_init:                   ## @snd_tea575x_hw_init
	.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
	movl	$1, (%rdi)
	cmpl	$0, 12(%rdi)
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$21930, %esi                    ## imm = 0x55AA
	callq	_snd_tea575x_write
	movq	%rbx, %rdi
	callq	_snd_tea575x_read
	cmpl	$21930, %eax                    ## imm = 0x55AA
	jne	LBB0_2
LBB0_3:
	movq	_TEA575X_BIT_BAND_FM@GOTPCREL(%rip), %rax
	movq	_TEA575X_BIT_SEARCH_5_28@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	$1448000, 8(%rbx)               ## imm = 0x161840
	movq	%rbx, %rdi
	callq	_snd_tea575x_set_freq
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TEA575X_BIT_BAND_FM,4,2        ## @TEA575X_BIT_BAND_FM
	.comm	_TEA575X_BIT_SEARCH_5_28,4,2    ## @TEA575X_BIT_SEARCH_5_28
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_tea575x_hw_init            ; -- Begin function snd_tea575x_hw_init
	.p2align	2
_snd_tea575x_hw_init:                   ; @snd_tea575x_hw_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	ldr	w8, [x0, #12]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	w20, #21930
	mov	x0, x19
	mov	w1, #21930
	bl	_snd_tea575x_write
	mov	x0, x19
	bl	_snd_tea575x_read
	cmp	w0, w20
	b.ne	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _TEA575X_BIT_BAND_FM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEA575X_BIT_BAND_FM@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TEA575X_BIT_SEARCH_5_28@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TEA575X_BIT_SEARCH_5_28@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	w9, #6208
	movk	w9, #22, lsl #16
	stp	w8, w9, [x19, #4]
	mov	x0, x19
	bl	_snd_tea575x_set_freq
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TEA575X_BIT_BAND_FM,4,2        ; @TEA575X_BIT_BAND_FM
	.comm	_TEA575X_BIT_SEARCH_5_28,4,2    ; @TEA575X_BIT_SEARCH_5_28
.subsections_via_symbols
