	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sq_open2
_sq_open2:                              ## @sq_open2
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testl	%edx, (%rsi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	%rsi, %r15
	movl	$1, (%r14)
	movq	%r14, %rdi
	movl	%ecx, %esi
	movl	%r8d, %edx
	callq	_sq_allocate_buffers
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	$0, (%r14)
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r15), %eax
	movl	%eax, 4(%r14)
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_current,4,2                    ## @current
	.no_dead_strip	_sq_open2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sq_open2
_sq_open2:                              ; @sq_open2
	.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	w8, [x1]
	tst	w8, w2
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	mov	x20, x1
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x3
	mov	x2, x4
	bl	_sq_allocate_buffers
	cbz	w0, LBB0_6
; %bb.5:
	str	wzr, [x19]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19, #4]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_current,4,2                    ; @current
	.no_dead_strip	_sq_open2
.subsections_via_symbols
