	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bio_open_owner                 ## -- Begin function bio_open_owner
	.p2align	4, 0x90
_bio_open_owner:                        ## @bio_open_owner
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	testl	%edx, %edx
	je	LBB0_15
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_istext
	movl	%eax, %r13d
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$384, %edx                      ## imm = 0x180
	xorl	%eax, %eax
	callq	_open
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movl	$119, %edi
	movl	%ebx, %esi
	callq	_modestr
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	_BIO_CLOSE@GOTPCREL(%rip), %rax
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:
	movq	_BIO_FP_TEXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_8:
	orl	(%rax), %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_BIO_new_fp
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_9
LBB0_15:
	movq	%r12, %rdi
	movl	$119, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bio_open_default               ## TAILCALL
LBB0_5:
	xorl	%r15d, %r15d
LBB0_9:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%eax, %eax
	callq	_opt_getprog
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movl	%ebx, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_BIO_printf
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_fclose
	jmp	LBB0_13
LBB0_11:
	testl	%r14d, %r14d
	js	LBB0_13
## %bb.12:
	movl	%r14d, %edi
	callq	_close
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_BIO_CLOSE,4,2                  ## @BIO_CLOSE
	.comm	_BIO_FP_TEXT,4,2                ## @BIO_FP_TEXT
	.comm	_bio_err,4,2                    ## @bio_err
L_.str.1:                               ## @.str.1
	.asciz	"%s: Can't open \"%s\" for writing, %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	__O_BINARY,4,2                  ## @_O_BINARY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bio_open_owner                 ; -- Begin function bio_open_owner
	.p2align	2
_bio_open_owner:                        ; @bio_open_owner
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	cbz	w2, LBB0_6
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_istext
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #384
	bl	_open
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	w0, #119
	mov	x1, x21
	bl	_modestr
	mov	x1, x0
	mov	x0, x20
	bl	_fdopen
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _BIO_CLOSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BIO_CLOSE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _BIO_FP_TEXT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BIO_FP_TEXT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w22, #0
	csel	w9, wzr, w9, eq
	orr	w1, w9, w8
	mov	x0, x21
	bl	_BIO_new_fp
	cbnz	x0, LBB0_13
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	w1, #119
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bio_open_default
LBB0_7:
	mov	x21, #0
LBB0_8:
Lloh11:
	adrp	x24, _bio_err@GOTPAGE
Lloh12:
	ldr	x24, [x24, _bio_err@GOTPAGEOFF]
	ldr	w22, [x24]
	bl	_opt_getprog
	mov	x23, x0
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_strerror
	mov	x4, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x3, x19
	bl	_BIO_printf
	ldr	w0, [x24]
	bl	_ERR_print_errors
	cbz	x21, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_fclose
	b	LBB0_12
LBB0_10:
	tbnz	w20, #31, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_close
LBB0_12:
	mov	x0, #0
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_BIO_CLOSE,4,2                  ; @BIO_CLOSE
	.comm	_BIO_FP_TEXT,4,2                ; @BIO_FP_TEXT
	.comm	_bio_err,4,2                    ; @bio_err
l_.str.1:                               ; @.str.1
	.asciz	"%s: Can't open \"%s\" for writing, %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	__O_BINARY,4,2                  ; @_O_BINARY
.subsections_via_symbols
