	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_specified_resource_alignment
_pci_specified_resource_alignment:      ## @pci_specified_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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_pcibios_default_alignment
	movl	%eax, %r15d
	movq	_resource_alignment_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_resource_alignment_param@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, -48(%rbp)
	testq	%r12, %r12
	je	LBB0_18
## %bb.1:
	cmpb	$0, (%r12)
	je	LBB0_18
## %bb.2:
	movq	_PCI_PROBE_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pci_has_flag
	testq	%rax, %rax
	je	LBB0_3
## %bb.19:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info_once
	xorl	%r15d, %r15d
LBB0_18:
	movq	_resource_alignment_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpb	$0, (%r12)
	je	LBB0_18
## %bb.4:
	leaq	-48(%rbp), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%rsi), %r12
	movq	%r12, -48(%rbp)
	cmpb	$0, 1(%rsi)
	je	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -52(%rbp)
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	callq	_sscanf
	movq	-48(%rbp), %rsi
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	-52(%rbp), %rax
	cmpb	$64, (%rsi,%rax)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%rax, %rsi
	incq	%rsi
	movq	%rsi, -48(%rbp)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$-1, -56(%rbp)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_pci_dev_str_match
	cmpl	$1, %eax
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rsi
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rsi), %eax
	cmpb	$59, %al
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$44, %al
	je	LBB0_17
	jmp	LBB0_18
LBB0_10:
	movl	$1, (%r14)
	movl	-56(%rbp), %ecx
	cmpl	$-1, %ecx
	je	LBB0_11
## %bb.12:
	movl	$1, %r15d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	jmp	LBB0_18
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_18
LBB0_11:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_resource_alignment_lock,4,2    ## @resource_alignment_lock
	.comm	_resource_alignment_param,8,3   ## @resource_alignment_param
	.comm	_PCI_PROBE_ONLY,4,2             ## @PCI_PROBE_ONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI: Ignoring requested alignments (PCI_PROBE_ONLY)\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d%n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"PCI: Can't parse resource_alignment parameter: %s\n"

	.no_dead_strip	_pci_specified_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_specified_resource_alignment
_pci_specified_resource_alignment:      ; @pci_specified_resource_alignment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_pcibios_default_alignment
	mov	x19, x0
Lloh0:
	adrp	x0, _resource_alignment_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _resource_alignment_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh2:
	adrp	x8, _resource_alignment_param@GOTPAGE
Lloh3:
	ldr	x8, [x8, _resource_alignment_param@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
	str	x23, [sp]
	cbz	x23, LBB0_4
; %bb.1:
	ldrb	w8, [x23]
	cbz	w8, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _PCI_PROBE_ONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_PROBE_ONLY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_pci_has_flag
	cbz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info_once
	mov	w19, #0
LBB0_4:
Lloh10:
	adrp	x0, _resource_alignment_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _resource_alignment_lock@GOTPAGEOFF]
	bl	_spin_unlock
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_5:
	ldrb	w8, [x23]
	cbz	w8, LBB0_4
; %bb.6:
Lloh12:
	adrp	x22, l_.str.1@PAGE
Lloh13:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	w24, #-1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x1, #1
	str	x23, [sp]
	ldrb	w8, [x1, #1]
	cbz	w8, LBB0_4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x22
	bl	_sscanf
	ldr	x1, [sp]
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [sp, #8]
	ldrb	w9, [x1, x8]
	cmp	w9, #64
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, x1
	add	x1, x8, #1
	str	x1, [sp]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	str	w24, [sp, #12]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x2, sp
	mov	x0, x21
	bl	_pci_dev_str_match
	cmp	w0, #1
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [sp]
	tbnz	w0, #31, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x1]
	cmp	w8, #59
	b.eq	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #44
	b.eq	LBB0_7
	b	LBB0_4
LBB0_16:
	mov	w8, #1
	str	w8, [x20]
	ldr	w9, [sp, #12]
	cmn	w9, #1
	b.eq	LBB0_19
; %bb.17:
	lsl	w19, w8, w9
	b	LBB0_4
LBB0_18:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_4
LBB0_19:
Lloh16:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_resource_alignment_lock,4,2    ; @resource_alignment_lock
	.comm	_resource_alignment_param,8,3   ; @resource_alignment_param
	.comm	_PCI_PROBE_ONLY,4,2             ; @PCI_PROBE_ONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI: Ignoring requested alignments (PCI_PROBE_ONLY)\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d%n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"PCI: Can't parse resource_alignment parameter: %s\n"

	.no_dead_strip	_pci_specified_resource_alignment
.subsections_via_symbols
