	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_endpoint_test_bar
_pci_endpoint_test_bar:                 ## @pci_endpoint_test_bar
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movl	%esi, %ecx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	16(%rdi), %rdi
	callq	_pci_resource_len
	cmpl	%r14d, (%r12)
	movl	$4, %r13d
	cmovnel	%eax, %r13d
	movl	$1, %r15d
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$-1600085856, %ecx              ## imm = 0xA0A0A0A0
	callq	_pci_endpoint_test_bar_writel
	addl	$4, %ebx
	cmpl	%r13d, %ebx
	jl	LBB0_3
## %bb.4:
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_pci_endpoint_test_bar_readl
	cmpl	$-1600085856, %eax              ## imm = 0xA0A0A0A0
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	addl	$4, %ebx
	cmpl	%r13d, %ebx
	jl	LBB0_7
	jmp	LBB0_9
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pci_endpoint_test_bar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_endpoint_test_bar
_pci_endpoint_test_bar:                 ; @pci_endpoint_test_bar
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0, #8]
	ldr	w8, [x8, w1, uxtw #2]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #16]
	bl	_pci_resource_len
	ldr	w8, [x20]
	mov	w9, #4
	cmp	w8, w19
	csel	w22, w9, w0, eq
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.2:
	mov	w21, #0
	mov	w23, #41120
	movk	w23, #41120, lsl #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #41120
	movk	w3, #41120, lsl #16
	bl	_pci_endpoint_test_bar_writel
	add	w21, w21, #4
	cmp	w21, w22
	b.lt	LBB0_3
; %bb.4:
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_pci_endpoint_test_bar_readl
	cmp	w0, w23
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #4
	cmp	w21, w22
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pci_endpoint_test_bar
.subsections_via_symbols
