	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_ntb_local_link_is_up
_idt_ntb_local_link_is_up:              ## @idt_ntb_local_link_is_up
	.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	%rdi, %rbx
	movq	_IDT_NT_PCICMDSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_idt_nt_read
	movq	_IDT_PCICMDSTS_BME@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_IDT_NT_NTCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_idt_nt_read
	movq	_IDT_NTCTL_CPEN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_IDT_NT_NTMTBLADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_idt_nt_write
	movq	_IDT_NT_NTMTBLDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_idt_nt_read
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IDT_NTMTBLDATA_VALID@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	testl	%r15d, (%rax)
	setne	%r14b
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDT_NT_PCICMDSTS,4,2           ## @IDT_NT_PCICMDSTS
	.comm	_IDT_PCICMDSTS_BME,4,2          ## @IDT_PCICMDSTS_BME
	.comm	_IDT_NT_NTCTL,4,2               ## @IDT_NT_NTCTL
	.comm	_IDT_NTCTL_CPEN,4,2             ## @IDT_NTCTL_CPEN
	.comm	_IDT_NT_NTMTBLADDR,4,2          ## @IDT_NT_NTMTBLADDR
	.comm	_IDT_NT_NTMTBLDATA,4,2          ## @IDT_NT_NTMTBLDATA
	.comm	_IDT_NTMTBLDATA_VALID,4,2       ## @IDT_NTMTBLDATA_VALID
	.no_dead_strip	_idt_ntb_local_link_is_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt_ntb_local_link_is_up
_idt_ntb_local_link_is_up:              ; @idt_ntb_local_link_is_up
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _IDT_NT_PCICMDSTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDT_NT_PCICMDSTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_idt_nt_read
Lloh3:
	adrp	x8, _IDT_PCICMDSTS_BME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDT_PCICMDSTS_BME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _IDT_NT_NTCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDT_NT_NTCTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_idt_nt_read
Lloh9:
	adrp	x8, _IDT_NTCTL_CPEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IDT_NTCTL_CPEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh12:
	adrp	x8, _IDT_NT_NTMTBLADDR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IDT_NT_NTMTBLADDR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x19
	bl	_idt_nt_write
Lloh15:
	adrp	x8, _IDT_NT_NTMTBLDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IDT_NT_NTMTBLDATA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_idt_nt_read
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh18:
	adrp	x8, _IDT_NTMTBLDATA_VALID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IDT_NTMTBLDATA_VALID@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w0, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IDT_NT_PCICMDSTS,4,2           ; @IDT_NT_PCICMDSTS
	.comm	_IDT_PCICMDSTS_BME,4,2          ; @IDT_PCICMDSTS_BME
	.comm	_IDT_NT_NTCTL,4,2               ; @IDT_NT_NTCTL
	.comm	_IDT_NTCTL_CPEN,4,2             ; @IDT_NTCTL_CPEN
	.comm	_IDT_NT_NTMTBLADDR,4,2          ; @IDT_NT_NTMTBLADDR
	.comm	_IDT_NT_NTMTBLDATA,4,2          ; @IDT_NT_NTMTBLDATA
	.comm	_IDT_NTMTBLDATA_VALID,4,2       ; @IDT_NTMTBLDATA_VALID
	.no_dead_strip	_idt_ntb_local_link_is_up
.subsections_via_symbols
