	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fixredir                       ## -- Begin function fixredir
	.p2align	4, 0x90
_fixredir:                              ## @fixredir
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movslq	%edx, %rbx
	movq	%rbx, %rdi
	callq	_TRACE
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	$0, 8(%r14)
LBB0_2:
	movsbl	(%r12), %edi
	callq	_is_digit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpb	$0, 1(%r12)
	je	LBB0_4
LBB0_5:
	cmpb	$45, (%r12)
	jne	LBB0_8
## %bb.6:
	cmpb	$0, 1(%r12)
	je	LBB0_7
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_synerror                       ## TAILCALL
LBB0_4:
	movsbl	(%r12), %edi
	callq	_digit_val
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_makename
	movq	%rax, 8(%r14)
	jmp	LBB0_10
LBB0_7:
	movl	$-1, (%r14)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Bad fd number"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fixredir                       ; -- Begin function fixredir
	.p2align	2
_fixredir:                              ; @fixredir
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	sxtw	x0, w20
	bl	_TRACE
	cbnz	w20, LBB0_2
; %bb.1:
	str	xzr, [x19, #8]
LBB0_2:
	ldrsb	w0, [x21]
	bl	_is_digit
	cbz	x0, LBB0_4
; %bb.3:
	ldrb	w8, [x21, #1]
	cbz	w8, LBB0_8
LBB0_4:
	ldrb	w8, [x21]
	cmp	w8, #45
	b.ne	LBB0_6
; %bb.5:
	ldrb	w8, [x21, #1]
	cbz	w8, LBB0_10
LBB0_6:
	cbz	w20, LBB0_9
; %bb.7:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_synerror
LBB0_8:
	ldrsb	w0, [x21]
	bl	_digit_val
	str	w0, [x19]
	b	LBB0_11
LBB0_9:
	bl	_makename
	str	x0, [x19, #8]
	b	LBB0_11
LBB0_10:
	mov	w8, #-1
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Bad fd number"

.subsections_via_symbols
