	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _replace_register
__replace_register:                     ## @_replace_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_A_DIRECT@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	__8051_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_7
## %bb.2:
	leaq	L_.str.1(%rip), %r15
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	movq	_A_BIT@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_arg_bit
	movq	%rax, %rbx
	movq	__8051_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %r15
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	leaq	-50(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_sprintf
	movq	__8051_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdx
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sprintf
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_r_str_replace
	movq	%rax, %r14
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_A_DIRECT,8,3                   ## @A_DIRECT
	.comm	__8051_regs,8,3                 ## @_8051_regs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" 0x%02x"

L_.str.1:                               ## @.str.1
	.asciz	" %s"

	.comm	_A_BIT,8,3                      ## @A_BIT
L_.str.2:                               ## @.str.2
	.asciz	"0x%02x."

L_.str.3:                               ## @.str.3
	.asciz	"%s."

	.no_dead_strip	__replace_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _replace_register
__replace_register:                     ; @_replace_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _A_DIRECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_DIRECT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, __8051_regs@GOTPAGE
Lloh7:
	ldr	x8, [x8, __8051_regs@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8, x20, lsl #3]
	cbz	x8, LBB0_7
; %bb.2:
Lloh9:
	adrp	x21, l_.str.1@PAGE
Lloh10:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x8, _A_BIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _A_BIT@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_arg_bit
Lloh16:
	adrp	x8, __8051_regs@GOTPAGE
Lloh17:
	ldr	x8, [x8, __8051_regs@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x8, [x8, x0, lsl #3]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x20, x0
Lloh19:
	adrp	x21, l_.str.3@PAGE
Lloh20:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	add	x0, sp, #14
	mov	x2, x20
	bl	_sprintf
Lloh23:
	adrp	x8, __8051_regs@GOTPAGE
Lloh24:
	ldr	x8, [x8, __8051_regs@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x2, [x8, x20, lsl #3]
	add	x0, sp, #4
	mov	x1, x21
	bl	_sprintf
	add	x1, sp, #14
	add	x2, sp, #4
	mov	x0, x19
	mov	w3, #0
	bl	_r_str_replace
	mov	x19, x0
LBB0_7:
	ldr	x8, [sp, #24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_A_DIRECT,8,3                   ; @A_DIRECT
	.comm	__8051_regs,8,3                 ; @_8051_regs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" 0x%02x"

l_.str.1:                               ; @.str.1
	.asciz	" %s"

	.comm	_A_BIT,8,3                      ; @A_BIT
l_.str.2:                               ; @.str.2
	.asciz	"0x%02x."

l_.str.3:                               ; @.str.3
	.asciz	"%s."

	.no_dead_strip	__replace_register
.subsections_via_symbols
