	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_set_cacheline_size         ## -- Begin function pci_set_cacheline_size
	.p2align	4, 0x90
_pci_set_cacheline_size:                ## @pci_set_cacheline_size
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pci_cache_line_size@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	_PCI_CACHE_LINE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_byte
	movl	-28(%rbp), %eax
	movl	(%r14), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_4
## %bb.2:
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_3
LBB0_4:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_pci_write_config_byte
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_byte
	movl	(%r14), %edx
	xorl	%eax, %eax
	cmpl	%edx, -28(%rbp)
	je	LBB0_7
## %bb.5:
	shll	$2, %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_pci_info
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_cache_line_size,4,2        ## @pci_cache_line_size
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCI_CACHE_LINE_SIZE,4,2        ## @PCI_CACHE_LINE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache line size of %d is not supported\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_set_cacheline_size         ; -- Begin function pci_set_cacheline_size
	.p2align	2
_pci_set_cacheline_size:                ; @pci_set_cacheline_size
	.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
Lloh0:
	adrp	x20, _pci_cache_line_size@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pci_cache_line_size@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x21, _PCI_CACHE_LINE_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PCI_CACHE_LINE_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	ldr	w2, [x20]
	cmp	w8, w2
	b.lt	LBB0_3
; %bb.2:
	sdiv	w9, w8, w2
	msub	w8, w9, w2, w8
	cbz	w8, LBB0_4
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_write_config_byte
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_byte
	ldr	w9, [sp, #12]
	ldr	w8, [x20]
	cmp	w9, w8
	b.ne	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	lsl	w2, w8, #2
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pci_info
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_cache_line_size,4,2        ; @pci_cache_line_size
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCI_CACHE_LINE_SIZE,4,2        ; @PCI_CACHE_LINE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache line size of %d is not supported\n"

.subsections_via_symbols
