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

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