	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function floppy_request_regions
_floppy_request_regions:                ## @floppy_request_regions
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_io_regions@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_END
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	jae	LBB0_5
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_FDCS@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rbx), %rdi
	addq	(%rax), %rdi
	movl	8(%rbx), %esi
	movq	%r12, %rdx
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	callq	_ARRAY_END
	addq	$16, %rbx
	cmpq	%rax, %rbx
	jb	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	(%r14), %rax
	movq	(%rbx), %rsi
	addq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINT
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_floppy_release_allocated_regions
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_io_regions,8,3                 ## @io_regions
	.comm	_FDCS,8,3                       ## @FDCS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"floppy"

L_.str.1:                               ## @.str.1
	.asciz	"Floppy io-port 0x%04lx in use\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_floppy_request_regions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function floppy_request_regions
_floppy_request_regions:                ; @floppy_request_regions
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x22, _io_regions@GOTPAGE
Lloh1:
	ldr	x22, [x22, _io_regions@GOTPAGEOFF]
	ldr	x20, [x22]
	mov	x0, x20
	bl	_ARRAY_END
	cmp	x20, x0
	b.hs	LBB0_4
; %bb.1:
Lloh2:
	adrp	x23, _FDCS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FDCS@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x0, x9, x8
	ldr	w1, [x20, #8]
	mov	x2, x21
	bl	_request_region
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x22]
	bl	_ARRAY_END
	add	x20, x20, #16
	cmp	x20, x0
	b.lo	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x1, x9, x8
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
	mov	x0, x19
	mov	x1, x20
	bl	_floppy_release_allocated_regions
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_io_regions,8,3                 ; @io_regions
	.comm	_FDCS,8,3                       ; @FDCS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"floppy"

l_.str.1:                               ; @.str.1
	.asciz	"Floppy io-port 0x%04lx in use\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_floppy_request_regions
.subsections_via_symbols
