	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3306a_search
_lgdt3306a_search:                      ## @lgdt3306a_search
	.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	$0, -12(%rbp)
	callq	_lgdt3306a_set_parameters
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	leaq	-12(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lgdt3306a_read_status
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_dbg_info
	movq	_DVBFE_ALGO_SEARCH_ERROR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -12(%rbp)
	jne	LBB0_3
## %bb.4:
	movq	_DVBFE_ALGO_SEARCH_AGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_DVBFE_ALGO_SEARCH_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.comm	_DVBFE_ALGO_SEARCH_SUCCESS,4,2  ## @DVBFE_ALGO_SEARCH_SUCCESS
	.comm	_DVBFE_ALGO_SEARCH_AGAIN,4,2    ## @DVBFE_ALGO_SEARCH_AGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed (%d)\n"

	.comm	_DVBFE_ALGO_SEARCH_ERROR,4,2    ## @DVBFE_ALGO_SEARCH_ERROR
	.no_dead_strip	_lgdt3306a_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgdt3306a_search
_lgdt3306a_search:                      ; @lgdt3306a_search
	.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
	str	wzr, [sp, #12]
	bl	_lgdt3306a_set_parameters
	mov	x1, x0
	cbnz	w0, LBB0_2
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_lgdt3306a_read_status
	mov	x1, x0
	cbz	w0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_info
Lloh2:
	adrp	x8, _DVBFE_ALGO_SEARCH_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DVBFE_ALGO_SEARCH_ERROR@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _FE_HAS_LOCK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _DVBFE_ALGO_SEARCH_SUCCESS@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DVBFE_ALGO_SEARCH_SUCCESS@GOTPAGEOFF]
Lloh9:
	adrp	x11, _DVBFE_ALGO_SEARCH_AGAIN@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DVBFE_ALGO_SEARCH_AGAIN@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.comm	_DVBFE_ALGO_SEARCH_SUCCESS,4,2  ; @DVBFE_ALGO_SEARCH_SUCCESS
	.comm	_DVBFE_ALGO_SEARCH_AGAIN,4,2    ; @DVBFE_ALGO_SEARCH_AGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed (%d)\n"

	.comm	_DVBFE_ALGO_SEARCH_ERROR,4,2    ; @DVBFE_ALGO_SEARCH_ERROR
	.no_dead_strip	_lgdt3306a_search
.subsections_via_symbols
