	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_bus_update_busn_res_end    ## -- Begin function pci_bus_update_busn_res_end
	.p2align	4, 0x90
_pci_bus_update_busn_res_end:           ## @pci_bus_update_busn_res_end
	.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
	movl	%esi, %r15d
	movl	12(%rdi), %eax
	movl	%eax, -32(%rbp)
	movq	4(%rdi), %rax
	movq	%rax, -40(%rbp)
	movl	4(%rdi), %esi
	cmpl	%r15d, %esi
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_2:
	movq	%rdi, %rbx
	addq	$4, %rdi
	movl	%r15d, %edx
	subl	%esi, %edx
	incl	%edx
	callq	_adjust_resource
	movl	%eax, %r14d
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %r8d
	callq	_dev_info
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	cmpl	$0, 12(%rbx)
	jne	LBB0_5
## %bb.4:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_pci_bus_insert_busn_res
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"busn_res: %pR end %s updated to %02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"can not be"

L_.str.2:                               ## @.str.2
	.asciz	"is"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_bus_update_busn_res_end    ; -- Begin function pci_bus_update_busn_res_end
	.p2align	2
_pci_bus_update_busn_res_end:           ; @pci_bus_update_busn_res_end
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #4]!
	str	x8, [sp]
	ldr	w8, [x0, #8]
	str	w8, [sp, #8]
	ldr	w1, [x0]
	cmp	w1, w20
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_2:
	sub	w8, w20, w1
	add	w2, w8, #1
	bl	_adjust_resource
	mov	x21, x0
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x3, x9, x8, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, sp
	mov	x0, x19
	mov	x4, x20
	bl	_dev_info
	cbnz	w21, LBB0_6
; %bb.3:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_5
; %bb.4:
	ldp	w1, w2, [x19, #4]
	mov	x0, x19
	bl	_pci_bus_insert_busn_res
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"busn_res: %pR end %s updated to %02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"can not be"

l_.str.2:                               ; @.str.2
	.asciz	"is"

.subsections_via_symbols
