	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_max_bgx_per_node
_set_max_bgx_per_node:                  ## @set_max_bgx_per_node
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_max_bgx_per_node@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_5
## %bb.1:
	movq	_PCI_SUBSYSTEM_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_pci_read_config_word
	movl	$-129, %eax
	addl	-12(%rbp), %eax
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.set_max_bgx_per_node(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_MAX_BGX_PER_CN88XX@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_bgx_per_node,8,3           ## @max_bgx_per_node
	.comm	_PCI_SUBSYSTEM_ID,4,2           ## @PCI_SUBSYSTEM_ID
	.comm	_MAX_BGX_PER_CN81XX,8,3         ## @MAX_BGX_PER_CN81XX
	.comm	_MAX_BGX_PER_CN83XX,8,3         ## @MAX_BGX_PER_CN83XX
	.comm	_MAX_BGX_PER_CN88XX,8,3         ## @MAX_BGX_PER_CN88XX
	.no_dead_strip	_set_max_bgx_per_node
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.set_max_bgx_per_node
l_switch.table.set_max_bgx_per_node:
	.quad	_MAX_BGX_PER_CN83XX
	.quad	_MAX_BGX_PER_CN81XX
	.quad	_MAX_BGX_PER_CN81XX

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_max_bgx_per_node
_set_max_bgx_per_node:                  ; @set_max_bgx_per_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _max_bgx_per_node@GOTPAGE
Lloh1:
	ldr	x19, [x19, _max_bgx_per_node@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _PCI_SUBSYSTEM_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_SUBSYSTEM_ID@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	sub	w8, w8, #129
	cmp	w8, #2
	b.hi	LBB0_3
; %bb.2:
Lloh5:
	adrp	x9, l_switch.table.set_max_bgx_per_node@PAGE
Lloh6:
	add	x9, x9, l_switch.table.set_max_bgx_per_node@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _MAX_BGX_PER_CN88XX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_BGX_PER_CN88XX@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_max_bgx_per_node,8,3           ; @max_bgx_per_node
	.comm	_PCI_SUBSYSTEM_ID,4,2           ; @PCI_SUBSYSTEM_ID
	.comm	_MAX_BGX_PER_CN81XX,8,3         ; @MAX_BGX_PER_CN81XX
	.comm	_MAX_BGX_PER_CN83XX,8,3         ; @MAX_BGX_PER_CN83XX
	.comm	_MAX_BGX_PER_CN88XX,8,3         ; @MAX_BGX_PER_CN88XX
	.no_dead_strip	_set_max_bgx_per_node
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.set_max_bgx_per_node
l_switch.table.set_max_bgx_per_node:
	.quad	_MAX_BGX_PER_CN83XX
	.quad	_MAX_BGX_PER_CN81XX
	.quad	_MAX_BGX_PER_CN81XX

.subsections_via_symbols
