	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sideband_reg_base_addr
_get_sideband_reg_base_addr:            ## @get_sideband_reg_base_addr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$6621, %esi                     ## imm = 0x19DD
	xorl	%edx, %edx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-24(%rbp), %rdx
	movq	%rax, %rdi
	movl	$225, %esi
	callq	_pci_read_config_byte
	cmpq	$0, -24(%rbp)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$225, %esi
	xorl	%edx, %edx
	callq	_pci_write_config_byte
LBB0_4:
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_pci_read_config_dword
	leaq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_pci_read_config_dword
	andb	$-16, -12(%rbp)
	movq	-24(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	$225, %esi
	callq	_pci_write_config_byte
LBB0_6:
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movl	-16(%rbp), %edi
	movl	$32, %esi
	callq	_U64_LSHIFT
	movl	%eax, %ebx
	movl	-12(%rbp), %edi
	xorl	%esi, %esi
	callq	_U64_LSHIFT
	orl	%ebx, %eax
	jmp	LBB0_7
LBB0_1:
	movl	$-50331648, %eax                ## imm = 0xFD000000
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ## @PCI_VENDOR_ID_INTEL
	.no_dead_strip	_get_sideband_reg_base_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sideband_reg_base_addr
_get_sideband_reg_base_addr:            ; @get_sideband_reg_base_addr
	.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	x8, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #6621
	mov	x2, #0
	bl	_pci_get_device
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x2, sp
	mov	w1, #225
	bl	_pci_read_config_byte
	ldr	x8, [sp]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #225
	mov	x2, #0
	bl	_pci_write_config_byte
LBB0_3:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #16
	bl	_pci_read_config_dword
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #20
	bl	_pci_read_config_dword
	ldr	w8, [sp, #8]
	and	w8, w8, #0xfffffff0
	str	w8, [sp, #8]
	ldr	x2, [sp]
	cbz	x2, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #225
	bl	_pci_write_config_byte
LBB0_5:
	mov	x0, x19
	bl	_pci_dev_put
	ldr	w0, [sp, #12]
	mov	w1, #32
	bl	_U64_LSHIFT
	mov	x19, x0
	ldr	w0, [sp, #8]
	mov	w1, #0
	bl	_U64_LSHIFT
	orr	w0, w0, w19
	b	LBB0_7
LBB0_6:
	mov	w0, #-50331648
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ; @PCI_VENDOR_ID_INTEL
	.no_dead_strip	_get_sideband_reg_base_addr
.subsections_via_symbols
