	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nbio_v6_1_enable_doorbell_selfring_aperture
_nbio_v6_1_enable_doorbell_selfring_aperture: ## @nbio_v6_1_enable_doorbell_selfring_aperture
	.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
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_BIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DOORBELL_SELFRING_GPA_APER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %r15d
	movl	(%r12), %esi
	movq	_DOORBELL_SELFRING_GPA_APER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movl	(%r12), %esi
	movq	_DOORBELL_SELFRING_GPA_APER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_NBIO@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r14), %edi
	callq	_lower_32_bits
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movl	(%r13), %ebx
	movq	_mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r14), %edi
	callq	_upper_32_bits
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	_NBIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_SOC15                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL,4,2 ## @BIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL
	.comm	_DOORBELL_SELFRING_GPA_APER_EN,4,2 ## @DOORBELL_SELFRING_GPA_APER_EN
	.comm	_DOORBELL_SELFRING_GPA_APER_MODE,4,2 ## @DOORBELL_SELFRING_GPA_APER_MODE
	.comm	_DOORBELL_SELFRING_GPA_APER_SIZE,4,2 ## @DOORBELL_SELFRING_GPA_APER_SIZE
	.comm	_NBIO,4,2                       ## @NBIO
	.comm	_mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_LOW,4,2 ## @mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_LOW
	.comm	_mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_HIGH,4,2 ## @mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_HIGH
	.comm	_mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL,4,2 ## @mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL
	.no_dead_strip	_nbio_v6_1_enable_doorbell_selfring_aperture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nbio_v6_1_enable_doorbell_selfring_aperture
_nbio_v6_1_enable_doorbell_selfring_aperture: ; @nbio_v6_1_enable_doorbell_selfring_aperture
	.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
Lloh0:
	adrp	x23, _NBIO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NBIO@GOTPAGEOFF]
	cbz	w1, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x21, _BIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _DOORBELL_SELFRING_GPA_APER_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DOORBELL_SELFRING_GPA_APER_EN@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w0, #0
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x20, x0
	ldr	w1, [x21]
Lloh7:
	adrp	x8, _DOORBELL_SELFRING_GPA_APER_MODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DOORBELL_SELFRING_GPA_APER_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w0, #0
	mov	w3, #1
	bl	_REG_SET_FIELD
	orr	w20, w0, w20
	ldr	w1, [x21]
Lloh10:
	adrp	x8, _DOORBELL_SELFRING_GPA_APER_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DOORBELL_SELFRING_GPA_APER_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w0, #0
	mov	w3, #0
	bl	_REG_SET_FIELD
	orr	w20, w20, w0
	ldr	w21, [x23]
Lloh13:
	adrp	x8, _mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_LOW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_LOW@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	ldr	w0, [x19]
	bl	_lower_32_bits
	mov	x3, x0
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_WREG32_SOC15
	ldr	w21, [x23]
Lloh16:
	adrp	x8, _mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_HIGH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_HIGH@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
	ldr	w0, [x19]
	bl	_upper_32_bits
	mov	x3, x0
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_WREG32_SOC15
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
Lloh19:
	adrp	x8, _mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh21:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x20
	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
	b	_WREG32_SOC15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL,4,2 ; @BIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL
	.comm	_DOORBELL_SELFRING_GPA_APER_EN,4,2 ; @DOORBELL_SELFRING_GPA_APER_EN
	.comm	_DOORBELL_SELFRING_GPA_APER_MODE,4,2 ; @DOORBELL_SELFRING_GPA_APER_MODE
	.comm	_DOORBELL_SELFRING_GPA_APER_SIZE,4,2 ; @DOORBELL_SELFRING_GPA_APER_SIZE
	.comm	_NBIO,4,2                       ; @NBIO
	.comm	_mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_LOW,4,2 ; @mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_LOW
	.comm	_mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_HIGH,4,2 ; @mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_BASE_HIGH
	.comm	_mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL,4,2 ; @mmBIF_BX_PF0_DOORBELL_SELFRING_GPA_APER_CNTL
	.no_dead_strip	_nbio_v6_1_enable_doorbell_selfring_aperture
.subsections_via_symbols
