	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_loadreg                   ## -- Begin function emit_loadreg
	.p2align	4, 0x90
_emit_loadreg:                          ## @emit_loadreg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %edx
	movq	_slave@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_slave_reg@GOTPCREL(%rip), %rax
	cmoveq	_master_reg@GOTPCREL(%rip), %rax
	movl	_slave_cc@GOTPCREL(%rip), %ecx
	cmovel	_master_cc@GOTPCREL(%rip), %ecx
	leal	(,%rdx,4), %ebx
	movq	_CCREG@GOTPCREL(%rip), %rdi
	addl	(%rax), %ebx
	cmpl	%edx, (%rdi)
	cmovel	%ecx, %ebx
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %r14
	movl	(%rax,%r14,4), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_assem_debug
	movl	$139, %edi
	callq	_output_byte
	xorl	%edi, %edi
	movl	$5, %esi
	movl	%r14d, %edx
	callq	_output_modrm
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_output_w32                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_slave,8,3                      ## @slave
	.comm	_slave_reg,8,3                  ## @slave_reg
	.comm	_master_reg,8,3                 ## @master_reg
	.comm	_CCREG,4,2                      ## @CCREG
	.comm	_slave_cc,4,2                   ## @slave_cc
	.comm	_master_cc,4,2                  ## @master_cc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mov %x+%d,%%%s\n"

	.comm	_regname,8,3                    ## @regname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_loadreg                   ; -- Begin function emit_loadreg
	.p2align	2
_emit_loadreg:                          ; @emit_loadreg
	.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
	mov	x19, x1
	mov	x2, x0
Lloh0:
	adrp	x8, _slave@GOTPAGE
Lloh1:
	ldr	x8, [x8, _slave@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _slave_reg@GOTPAGE
Lloh4:
	ldr	x9, [x9, _slave_reg@GOTPAGEOFF]
Lloh5:
	adrp	x10, _master_reg@GOTPAGE
Lloh6:
	ldr	x10, [x10, _master_reg@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	add	w8, w8, w0, lsl #2
Lloh7:
	adrp	x9, _CCREG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CCREG@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _slave_cc@GOTPAGE
Lloh11:
	ldr	x10, [x10, _slave_cc@GOTPAGEOFF]
Lloh12:
	adrp	x11, _master_cc@GOTPAGE
Lloh13:
	ldr	x11, [x11, _master_cc@GOTPAGEOFF]
	csel	w10, w11, w10, eq
	cmp	w9, w0
	csel	w20, w10, w8, eq
Lloh14:
	adrp	x8, _regname@GOTPAGE
Lloh15:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w3, [x8, w1, sxtw #2]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_assem_debug
	mov	w0, #139
	bl	_output_byte
	mov	w0, #0
	mov	w1, #5
	mov	x2, x19
	bl	_output_modrm
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_output_w32
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_slave,8,3                      ; @slave
	.comm	_slave_reg,8,3                  ; @slave_reg
	.comm	_master_reg,8,3                 ; @master_reg
	.comm	_CCREG,4,2                      ; @CCREG
	.comm	_slave_cc,4,2                   ; @slave_cc
	.comm	_master_cc,4,2                  ; @master_cc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mov %x+%d,%%%s\n"

	.comm	_regname,8,3                    ; @regname
.subsections_via_symbols
