	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fix_register                   ## -- Begin function fix_register
	.p2align	4, 0x90
_fix_register:                          ## @fix_register
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_decode_reg_name
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_STACK_POINTER_REGNUM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movq	_FRAME_POINTER_REGNUM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_7
LBB0_5:
	movq	_fixed_regs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	%r15d, (%rcx,%rax,4)
	movq	_call_used_regs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, (%rcx,%rax,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.5(%rip), %rsi
	xorl	%edi, %edi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warning                        ## TAILCALL
LBB0_7:
	movslq	%r15d, %rax
	movslq	%r14d, %rcx
	shlq	$4, %rax
	leaq	_fix_register.what_option(%rip), %rdx
	addq	%rax, %rdx
	movq	(%rdx,%rcx,8), %rdx
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STACK_POINTER_REGNUM,4,2       ## @STACK_POINTER_REGNUM
	.comm	_FRAME_POINTER_REGNUM,4,2       ## @FRAME_POINTER_REGNUM
	.section	__DATA,__const
	.p2align	4                               ## @fix_register.what_option
_fix_register.what_option:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"call-saved"

L_.str.1:                               ## @.str.1
	.asciz	"call-used"

L_.str.2:                               ## @.str.2
	.asciz	"no-such-option"

L_.str.3:                               ## @.str.3
	.asciz	"fixed"

L_.str.4:                               ## @.str.4
	.asciz	"can't use '%s' as a %s register"

	.comm	_fixed_regs,8,3                 ## @fixed_regs
	.comm	_call_used_regs,8,3             ## @call_used_regs
L_.str.5:                               ## @.str.5
	.asciz	"unknown register name: %s"

	.comm	_HARD_FRAME_POINTER_REGNUM,4,2  ## @HARD_FRAME_POINTER_REGNUM
	.comm	_call_really_used_regs,8,3      ## @call_really_used_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fix_register                   ; -- Begin function fix_register
	.p2align	2
_fix_register:                          ; @fix_register
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_decode_reg_name
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _STACK_POINTER_REGNUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STACK_POINTER_REGNUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FRAME_POINTER_REGNUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FRAME_POINTER_REGNUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_4
; %bb.2:
	cbz	w21, LBB0_6
; %bb.3:
	cbz	w19, LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _fixed_regs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fixed_regs@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	w9, w0
	lsl	x9, x9, #2
	str	w21, [x8, x9]
Lloh9:
	adrp	x8, _call_used_regs@GOTPAGE
Lloh10:
	ldr	x8, [x8, _call_used_regs@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	w19, [x8, x9]
	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
LBB0_5:
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #0
	mov	x2, x20
	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	_warning
LBB0_6:
Lloh14:
	adrp	x8, _fix_register.what_option@PAGE
Lloh15:
	add	x8, x8, _fix_register.what_option@PAGEOFF
	add	x8, x8, w21, sxtw #4
	ldr	x2, [x8, w19, sxtw #3]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	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	_error
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_STACK_POINTER_REGNUM,4,2       ; @STACK_POINTER_REGNUM
	.comm	_FRAME_POINTER_REGNUM,4,2       ; @FRAME_POINTER_REGNUM
	.section	__DATA,__const
	.p2align	3                               ; @fix_register.what_option
_fix_register.what_option:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"call-saved"

l_.str.1:                               ; @.str.1
	.asciz	"call-used"

l_.str.2:                               ; @.str.2
	.asciz	"no-such-option"

l_.str.3:                               ; @.str.3
	.asciz	"fixed"

l_.str.4:                               ; @.str.4
	.asciz	"can't use '%s' as a %s register"

	.comm	_fixed_regs,8,3                 ; @fixed_regs
	.comm	_call_used_regs,8,3             ; @call_used_regs
l_.str.5:                               ; @.str.5
	.asciz	"unknown register name: %s"

	.comm	_HARD_FRAME_POINTER_REGNUM,4,2  ; @HARD_FRAME_POINTER_REGNUM
	.comm	_call_really_used_regs,8,3      ; @call_really_used_regs
.subsections_via_symbols
