	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_search_fopen                   ## -- Begin function search_fopen
	.p2align	4, 0x90
_search_fopen:                          ## @search_fopen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_f_stdin@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_3
## %bb.1:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.2:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movq	$0, 8(%rbx)
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
	xorl	%r15d, %r15d
LBB0_5:
	movq	_f_statistic@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.16:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_statistic
LBB0_15:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
LBB0_6:
	cmpq	$0, (%rbx)
	je	LBB0_15
## %bb.7:
	addq	$8, %rbx
	movq	_f_icase@GOTPCREL(%rip), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	callq	_fastfind
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, (%rbx)
	leaq	8(%rbx), %rbx
	je	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseek
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	callq	_err
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, (%r12)
	movq	-8(%rbx), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	callq	_fastfind_icase
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_f_stdin,8,3                    ## @f_stdin
	.comm	_stdin,8,3                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read database from stdin, use only `%s' as pattern"

L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"`%s'"

	.comm	_f_statistic,8,3                ## @f_statistic
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.3:                               ## @.str.3
	.asciz	"fseek to begin of ``%s''\n"

	.comm	_f_icase,8,3                    ## @f_icase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_search_fopen                   ; -- Begin function search_fopen
	.p2align	2
_search_fopen:                          ; @search_fopen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _f_stdin@GOTPAGE
Lloh1:
	ldr	x22, [x22, _f_stdin@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _stdin@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x21]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	str	xzr, [x21, #8]
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fopen
	mov	x20, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
LBB0_5:
Lloh11:
	adrp	x8, _f_statistic@GOTPAGE
Lloh12:
	ldr	x8, [x8, _f_statistic@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_statistic
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_fclose
LBB0_8:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.9:
	add	x23, x21, #8
Lloh14:
	adrp	x24, _SEEK_SET@GOTPAGE
Lloh15:
	ldr	x24, [x24, _SEEK_SET@GOTPAGEOFF]
Lloh16:
	adrp	x25, _f_icase@GOTPAGE
Lloh17:
	ldr	x25, [x25, _f_icase@GOTPAGEOFF]
Lloh18:
	adrp	x21, l_.str.3@PAGE
Lloh19:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	bl	_fastfind
	ldr	x8, [x23], #8
	cbz	x8, LBB0_7
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cbnz	x8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, #0
	bl	_fseek
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #1
	mov	x1, x21
	mov	x2, x19
	bl	_err
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x25]
	ldur	x1, [x23, #-8]
	mov	x0, x20
	mov	x2, x19
	cbz	x8, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_fastfind_icase
	ldr	x8, [x23], #8
	cbnz	x8, LBB0_11
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_f_stdin,8,3                    ; @f_stdin
	.comm	_stdin,8,3                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read database from stdin, use only `%s' as pattern"

l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"`%s'"

	.comm	_f_statistic,8,3                ; @f_statistic
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.3:                               ; @.str.3
	.asciz	"fseek to begin of ``%s''\n"

	.comm	_f_icase,8,3                    ; @f_icase
.subsections_via_symbols
