	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_tune_pcie_coalesce
_qib_tune_pcie_coalesce:                ## @qib_tune_pcie_coalesce
	.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	_qib_pcie_coalesce@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.1:
	movq	(%rdi), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.12:
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qib_devinfo                    ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_pci_is_pcie
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	cmpl	$32902, (%rbx)                  ## imm = 0x8086
	jne	LBB0_11
## %bb.4:
	movl	4(%rbx), %eax
	leal	-9698(%rax), %ecx
	cmpl	$24, %ecx
	ja	LBB0_6
## %bb.5:
	cmpl	$179, 8(%rbx)
	movl	$1024, %eax                     ## imm = 0x400
	movl	$7168, %r15d                    ## imm = 0x1C00
	cmovll	%eax, %r15d
	movl	$-50338817, %r14d               ## imm = 0xFCFFE3FF
	jmp	LBB0_10
LBB0_6:
	leal	-26082(%rax), %ecx
	movl	$1024, %r15d                    ## imm = 0x400
	movl	$-50338817, %r14d               ## imm = 0xFCFFE3FF
	cmpl	$25, %ecx
	jb	LBB0_10
## %bb.7:
	leal	-16417(%rax), %ecx
	movl	$7168, %r15d                    ## imm = 0x1C00
	cmpl	$14, %ecx
	jae	LBB0_9
## %bb.8:
	movl	$-7169, %r14d                   ## imm = 0xE3FF
	jmp	LBB0_10
LBB0_9:
	addl	$-13828, %eax                   ## imm = 0xC9FC
	cmpl	$6, %eax
	ja	LBB0_11
LBB0_10:
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$72, %esi
	callq	_pci_read_config_dword
	andl	-28(%rbp), %r14d
	orl	%r15d, %r14d
	movl	%r14d, -28(%rbp)
	movq	%rbx, %rdi
	movl	$72, %esi
	movl	%r14d, %edx
	callq	_pci_write_config_dword
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qib_pcie_coalesce,4,2          ## @qib_pcie_coalesce
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Parent not root\n"

	.no_dead_strip	_qib_tune_pcie_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_tune_pcie_coalesce
_qib_tune_pcie_coalesce:                ; @qib_tune_pcie_coalesce
	.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	x8, _qib_pcie_coalesce@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qib_pcie_coalesce@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.1:
	ldr	x0, [x0]
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_qib_devinfo
LBB0_3:
	mov	x0, x19
	bl	_pci_is_pcie
	cbz	w0, LBB0_14
; %bb.4:
	ldr	w8, [x19]
	mov	w9, #32902
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.5:
	ldr	w8, [x19, #4]
	mov	w9, #-9698
	add	w9, w8, w9
	mov	w20, #58367
	movk	w20, #64767, lsl #16
	cmp	w9, #24
	b.hi	LBB0_7
; %bb.6:
	ldr	w8, [x19, #8]
	mov	w9, #7168
	mov	w10, #1024
	cmp	w8, #179
	csel	w21, w10, w9, lt
	b	LBB0_13
LBB0_7:
	mov	w9, #-26082
	add	w9, w8, w9
	cmp	w9, #25
	b.hs	LBB0_9
; %bb.8:
	mov	w21, #1024
	b	LBB0_13
LBB0_9:
	mov	w9, #-16417
	add	w9, w8, w9
	cmp	w9, #14
	b.hs	LBB0_11
; %bb.10:
	mov	w21, #7168
	mov	w20, #-7169
	b	LBB0_13
LBB0_11:
	mov	w9, #-13828
	add	w8, w8, w9
	cmp	w8, #6
	b.hi	LBB0_14
; %bb.12:
	mov	w21, #7168
LBB0_13:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #72
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	and	w8, w8, w20
	orr	w2, w8, w21
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #72
	bl	_pci_write_config_dword
LBB0_14:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_qib_pcie_coalesce,4,2          ; @qib_pcie_coalesce
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Parent not root\n"

	.no_dead_strip	_qib_tune_pcie_coalesce
.subsections_via_symbols
