	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_request_resource_alignment
_pci_request_resource_alignment:        ## @pci_request_resource_alignment
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r8d
	movq	(%rdi), %r15
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %r14
	movl	(%r15,%r14,8), %eax
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leaq	(%r15,%r14,8), %rcx
	movq	_IORESOURCE_PCI_FIXED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_2
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movq	%r12, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_info                       ## TAILCALL
LBB0_2:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	callq	_resource_size
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	cmpq	%r12, %rax
	jge	LBB0_7
## %bb.3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r8d, %ebx
	movq	%r12, %r8
	callq	_pci_info
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	%r12, %rcx
	decq	%rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_5:
	movq	_IORESOURCE_SIZEALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	andl	(%rdx), %eax
	movl	%eax, (%rdx)
	movq	_IORESOURCE_STARTALIGN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rdx)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%r12, %rcx
	decq	%rcx
LBB0_6:
	movq	%r12, 8(%r15,%r14,8)
	movq	%rcx, 16(%r15,%r14,8)
	movq	_IORESOURCE_UNSET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rdx)
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_IORESOURCE_PCI_FIXED,4,2       ## @IORESOURCE_PCI_FIXED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BAR%d %pR: ignoring requested alignment %#llx\n"

L_.str.1:                               ## @.str.1
	.asciz	"BAR%d %pR: requesting alignment to %#llx\n"

	.comm	_IORESOURCE_SIZEALIGN,4,2       ## @IORESOURCE_SIZEALIGN
	.comm	_IORESOURCE_STARTALIGN,4,2      ## @IORESOURCE_STARTALIGN
	.comm	_IORESOURCE_UNSET,4,2           ## @IORESOURCE_UNSET
	.no_dead_strip	_pci_request_resource_alignment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_request_resource_alignment
_pci_request_resource_alignment:        ; @pci_request_resource_alignment
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x25, [x0]
	mov	w8, #24
	smaddl	x19, w1, w8, x25
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh3:
	adrp	x9, _IORESOURCE_PCI_FIXED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IORESOURCE_PCI_FIXED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	mov	x3, x19
	mov	x4, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pci_info
LBB0_3:
	mov	x21, x3
	mov	x0, x19
	bl	_resource_size
	cmp	x0, x20
	b.ge	LBB0_8
; %bb.4:
	mov	x24, x0
	sxtw	x26, w22
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	mov	x3, x19
	mov	x4, x20
	bl	_pci_info
	cbz	w21, LBB0_6
; %bb.5:
	sub	x9, x20, #1
	ldr	w8, [x19]
	mov	x20, #0
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _IORESOURCE_SIZEALIGN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IORESOURCE_SIZEALIGN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
Lloh13:
	adrp	x9, _IORESOURCE_STARTALIGN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IORESOURCE_STARTALIGN@GOTPAGEOFF]
	str	w8, [x19]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	add	x9, x20, x24
	sub	x9, x9, #1
LBB0_7:
	mov	w10, #24
	madd	x10, x26, x10, x25
	stp	x20, x9, [x10, #8]
Lloh16:
	adrp	x9, _IORESOURCE_UNSET@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IORESOURCE_UNSET@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_IORESOURCE_PCI_FIXED,4,2       ; @IORESOURCE_PCI_FIXED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BAR%d %pR: ignoring requested alignment %#llx\n"

l_.str.1:                               ; @.str.1
	.asciz	"BAR%d %pR: requesting alignment to %#llx\n"

	.comm	_IORESOURCE_SIZEALIGN,4,2       ; @IORESOURCE_SIZEALIGN
	.comm	_IORESOURCE_STARTALIGN,4,2      ; @IORESOURCE_STARTALIGN
	.comm	_IORESOURCE_UNSET,4,2           ; @IORESOURCE_UNSET
	.no_dead_strip	_pci_request_resource_alignment
.subsections_via_symbols
