	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dio_scodetophysaddr            ## -- Begin function dio_scodetophysaddr
	.p2align	4, 0x90
_dio_scodetophysaddr:                   ## @dio_scodetophysaddr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_DIOII_SCBASE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	js	LBB0_8
## %bb.3:
	movq	_DIO_SCMAX@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jl	LBB0_8
## %bb.4:
	movl	%ebx, %edi
	callq	_DIO_SCINHOLE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_DIOII_BASE@GOTPCREL(%rip), %rcx
	movslq	%ebx, %rdx
	addq	$-132, %rdx
	movq	_DIOII_DEVSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
LBB0_7:
	imulq	%rdx, %rax
	addq	(%rcx), %rax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_DIO_BASE@GOTPCREL(%rip), %rcx
	movq	_DIO_DEVSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movslq	%ebx, %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_DIOII_SCBASE,4,2               ## @DIOII_SCBASE
	.comm	_DIOII_BASE,8,3                 ## @DIOII_BASE
	.comm	_DIOII_DEVSIZE,4,2              ## @DIOII_DEVSIZE
	.comm	_DIO_SCMAX,4,2                  ## @DIO_SCMAX
	.comm	_DIO_BASE,8,3                   ## @DIO_BASE
	.comm	_DIO_DEVSIZE,4,2                ## @DIO_DEVSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dio_scodetophysaddr            ; -- Begin function dio_scodetophysaddr
	.p2align	2
_dio_scodetophysaddr:                   ; @dio_scodetophysaddr
	.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, x0
Lloh0:
	adrp	x8, _DIOII_SCBASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIOII_SCBASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_5
; %bb.1:
	mov	x0, #0
	tbnz	w19, #31, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _DIO_SCMAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIO_SCMAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.lt	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_DIO_SCINHOLE
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _DIOII_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIOII_BASE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	sxtw	x9, w19
	sub	x9, x9, #132
Lloh9:
	adrp	x10, _DIOII_DEVSIZE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DIOII_DEVSIZE@GOTPAGEOFF]
Lloh11:
	ldrsw	x10, [x10]
	madd	x0, x10, x9, x8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh12:
	adrp	x8, _DIO_BASE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DIO_BASE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _DIO_DEVSIZE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DIO_DEVSIZE@GOTPAGEOFF]
Lloh17:
	ldrsw	x9, [x9]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	sxtw	x10, w19
	madd	x0, x9, x10, x8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DIOII_SCBASE,4,2               ; @DIOII_SCBASE
	.comm	_DIOII_BASE,8,3                 ; @DIOII_BASE
	.comm	_DIOII_DEVSIZE,4,2              ; @DIOII_DEVSIZE
	.comm	_DIO_SCMAX,4,2                  ; @DIO_SCMAX
	.comm	_DIO_BASE,8,3                   ; @DIO_BASE
	.comm	_DIO_DEVSIZE,4,2                ; @DIO_DEVSIZE
.subsections_via_symbols
