	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostb_alloc_start              ## -- Begin function hostb_alloc_start
	.p2align	4, 0x90
_hostb_alloc_start:                     ## @hostb_alloc_start
	.cfi_startproc
## %bb.0:
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%esi, %eax
	addl	%eax, %ecx
	decl	%ecx
	cmpl	%edx, %ecx
	je	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rcx
	movq	_host_mem_start@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%eax, %edx
	cmovlel	%eax, %edx
	cmpl	%edi, (%rcx)
	cmovnel	%eax, %edx
	movq	_SYS_RES_IOPORT@GOTPCREL(%rip), %rcx
	cmpl	$4096, %edx                     ## imm = 0x1000
	movl	$4096, %eax                     ## imm = 0x1000
	cmovgel	%edx, %eax
	cmpl	%edi, (%rcx)
	cmovnel	%edx, %eax
	popq	%rbp
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_host_mem_start,4,2             ## @host_mem_start
	.comm	_SYS_RES_IOPORT,4,2             ## @SYS_RES_IOPORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostb_alloc_start              ; -- Begin function hostb_alloc_start
	.p2align	2
_hostb_alloc_start:                     ; @hostb_alloc_start
	.cfi_startproc
; %bb.0:
	add	w8, w1, w3
	sub	w8, w8, #1
	cmp	w8, w2
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _host_mem_start@GOTPAGE
Lloh4:
	ldr	x9, [x9, _host_mem_start@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w1
	csel	w9, w9, w1, gt
Lloh6:
	adrp	x10, _SYS_RES_IOPORT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SYS_RES_IOPORT@GOTPAGEOFF]
	cmp	w8, w0
	csel	w8, w9, w1, eq
Lloh8:
	ldr	w9, [x10]
	cmp	w8, #1, lsl #12                 ; =4096
	ccmp	w9, w0, #0, lt
	mov	w9, #4096
	csel	w1, w9, w8, eq
LBB0_2:
	mov	x0, x1
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_host_mem_start,4,2             ; @host_mem_start
	.comm	_SYS_RES_IOPORT,4,2             ; @SYS_RES_IOPORT
.subsections_via_symbols
