	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_clip_resource_to_region
_pci_clip_resource_to_region:           ## @pci_clip_resource_to_region
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdx
	callq	_pcibios_resource_to_bus
	movq	-40(%rbp), %rax
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_2
## %bb.1:
	movq	%rcx, -40(%rbp)
	movq	%rcx, %rax
LBB0_2:
	movq	-32(%rbp), %rcx
	movq	8(%rbx), %rdx
	cmpq	%rdx, %rcx
	jle	LBB0_4
## %bb.3:
	movq	%rdx, -32(%rbp)
	movq	%rdx, %rcx
LBB0_4:
	cmpq	%rax, %rcx
	jge	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	decq	%rax
	movq	%rax, 8(%r15)
	jmp	LBB0_7
LBB0_6:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pcibios_bus_to_resource
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pci_clip_resource_to_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_clip_resource_to_region
_pci_clip_resource_to_region:           ; @pci_clip_resource_to_region
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x1, sp
	mov	x2, x19
	bl	_pcibios_resource_to_bus
	ldr	x8, [sp]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	str	x9, [sp]
	mov	x8, x9
LBB0_2:
	ldr	x9, [sp, #8]
	ldr	x10, [x21, #8]
	cmp	x9, x10
	b.le	LBB0_4
; %bb.3:
	str	x10, [sp, #8]
	mov	x9, x10
LBB0_4:
	cmp	x9, x8
	b.ge	LBB0_6
; %bb.5:
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19, #8]
	b	LBB0_7
LBB0_6:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_pcibios_bus_to_resource
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pci_clip_resource_to_region
.subsections_via_symbols
