	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_autosearch_irq
_dib8000_autosearch_irq:                ## @dib8000_autosearch_irq
	.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	%rbx, %rdi
	movl	$1284, %esi                     ## imm = 0x504
	callq	_dib8000_read_word
	cmpl	$32770, (%rbx)                  ## imm = 0x8002
	jl	LBB0_4
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_AS_SEARCHING_FFT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	testb	$1, %al
	je	LBB0_9
## %bb.3:
	movl	$3, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_4:
	testb	$1, %al
	jne	LBB0_5
## %bb.6:
	xorl	%ebx, %ebx
	testb	$2, %al
	je	LBB0_9
## %bb.7:
	movl	$2, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_5:
	movl	$1, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	callq	_dprintk
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AS_SEARCHING_FFT,8,3           ## @AS_SEARCHING_FFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dib8000_autosearch_irq: max correlation result available\n"

L_.str.1:                               ## @.str.1
	.asciz	"dib8000_autosearch_irq failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"dib8000_autosearch_irq succeeded\n"

	.no_dead_strip	_dib8000_autosearch_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8000_autosearch_irq
_dib8000_autosearch_irq:                ; @dib8000_autosearch_irq
	.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
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #1284
	bl	_dib8000_read_word
	ldr	w8, [x19]
	mov	w9, #32770
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _AS_SEARCHING_FFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AS_SEARCHING_FFT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	tbz	w0, #0, LBB0_6
; %bb.3:
	mov	w19, #3
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_4:
	tbnz	w0, #0, LBB0_7
; %bb.5:
	tbnz	w0, #1, LBB0_8
LBB0_6:
	mov	w19, #0
	b	LBB0_10
LBB0_7:
	mov	w19, #1
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	w19, #2
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_dprintk
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AS_SEARCHING_FFT,8,3           ; @AS_SEARCHING_FFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dib8000_autosearch_irq: max correlation result available\n"

l_.str.1:                               ; @.str.1
	.asciz	"dib8000_autosearch_irq failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"dib8000_autosearch_irq succeeded\n"

	.no_dead_strip	_dib8000_autosearch_irq
.subsections_via_symbols
