	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siimage_selreg
_siimage_selreg:                        ## @siimage_selreg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IDE_HFLAG_MMIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	setne	%cl
	movl	4(%rdi), %eax
	addb	%cl, %cl
	orb	$4, %cl
	shll	%cl, %eax
	movslq	%esi, %rcx
	addq	8(%rdi), %rcx
	cltq
	addq	%rcx, %rax
	addq	$160, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_HFLAG_MMIO,4,2             ## @IDE_HFLAG_MMIO
	.no_dead_strip	_siimage_selreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siimage_selreg
_siimage_selreg:                        ; @siimage_selreg
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IDE_HFLAG_MMIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDE_HFLAG_MMIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldp	w10, w11, [x0]
	tst	w9, w10
	mov	w9, #6
	mov	w10, #4
	csel	w9, w10, w9, eq
	lsl	w9, w11, w9
	add	w10, w1, #160
	add	x8, x8, w10, sxtw
	add	x0, x8, w9, sxtw
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_HFLAG_MMIO,4,2             ; @IDE_HFLAG_MMIO
	.no_dead_strip	_siimage_selreg
.subsections_via_symbols
