	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___swhatbuf                     ## -- Begin function __swhatbuf
	.p2align	4, 0x90
___swhatbuf:                            ## @__swhatbuf
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	js	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsi
	callq	__fstat
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movl	-40(%rbp), %eax
	movq	_S_IFMT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_S_IFCHR@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	cmpl	(%rsi), %edx
	sete	%dil
	movl	%edi, (%rbx)
	movq	-32(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.6:
	movq	%rdx, (%r14)
	movq	%rdx, 8(%r15)
	andl	(%rcx), %eax
	movq	_S_IFREG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.7:
	movq	16(%r15), %rax
	movq	___sseek@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.8:
	movq	___SOPT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movl	$0, (%rbx)
LBB0_4:
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_5:
	movq	___SNPT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,8,3                     ## @BUFSIZ
	.comm	___SNPT,4,2                     ## @__SNPT
	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFCHR,4,2                    ## @S_IFCHR
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	___sseek,8,3                    ## @__sseek
	.comm	___SOPT,4,2                     ## @__SOPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___swhatbuf                     ; -- Begin function __swhatbuf
	.p2align	2
___swhatbuf:                            ; @__swhatbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	tbnz	x0, #63, LBB0_6
; %bb.1:
	mov	x1, sp
	bl	__fstat
	tbnz	x0, #63, LBB0_6
; %bb.2:
	ldr	w8, [sp]
Lloh0:
	adrp	x9, _S_IFMT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_IFMT@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh2:
	adrp	x11, _S_IFCHR@GOTPAGE
Lloh3:
	ldr	x11, [x11, _S_IFCHR@GOTPAGEOFF]
	and	w10, w10, w8
Lloh4:
	ldr	w11, [x11]
	cmp	w10, w11
	cset	w10, eq
	str	w10, [x21]
	ldr	x10, [sp, #8]
	cbz	x10, LBB0_7
; %bb.3:
	str	x10, [x20]
	str	x10, [x19, #8]
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh5:
	adrp	x9, _S_IFREG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _S_IFREG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, ___sseek@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___sseek@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
Lloh11:
	adrp	x8, ___SOPT@GOTPAGE
Lloh12:
	ldr	x8, [x8, ___SOPT@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	str	wzr, [x21]
LBB0_7:
Lloh13:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_8:
Lloh16:
	adrp	x8, ___SNPT@GOTPAGE
Lloh17:
	ldr	x8, [x8, ___SNPT@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,8,3                     ; @BUFSIZ
	.comm	___SNPT,4,2                     ; @__SNPT
	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFCHR,4,2                    ; @S_IFCHR
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	___sseek,8,3                    ; @__sseek
	.comm	___SOPT,4,2                     ; @__SOPT
.subsections_via_symbols
