	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcibios_align_resource         ## -- Begin function pcibios_align_resource
	.p2align	4, 0x90
_pcibios_align_resource:                ## @pcibios_align_resource
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movl	4(%rsi), %ebx
	callq	_skip_isa_ioresource_align
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	%ebx, %eax
	andl	$768, %eax                      ## imm = 0x300
	je	LBB0_4
## %bb.3:
	addl	$1023, %ebx                     ## imm = 0x3FF
	andl	$-1024, %ebx                    ## imm = 0xFC00
	movl	%ebx, 4(%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcibios_align_resource         ; -- Begin function pcibios_align_resource
	.p2align	2
_pcibios_align_resource:                ; @pcibios_align_resource
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _IORESOURCE_IO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IORESOURCE_IO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	w20, [x1, #4]
	bl	_skip_isa_ioresource_align
	cbnz	x0, LBB0_4
; %bb.2:
	and	w8, w20, #0x300
	cbz	w8, LBB0_4
; %bb.3:
	add	w8, w20, #1023
	and	w8, w8, #0xfffffc00
	str	w8, [x19, #4]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
.subsections_via_symbols
