	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d40_tx_is_linked
_d40_tx_is_linked:                      ## @d40_tx_is_linked
	.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	%rdi, %rbx
	callq	_chan_is_logical
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	movq	_D40_MEM_LCSP3_DLOS_MASK@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_chan_base
	movq	_D40_CHAN_REG_SDLNK@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	movq	_D40_SREG_LNK_PHYS_LNK_MASK@GOTPCREL(%rip), %rbx
LBB0_3:
	callq	_readl
	andl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D40_MEM_LCSP3_DLOS_MASK,4,2    ## @D40_MEM_LCSP3_DLOS_MASK
	.comm	_D40_CHAN_REG_SDLNK,4,2         ## @D40_CHAN_REG_SDLNK
	.comm	_D40_SREG_LNK_PHYS_LNK_MASK,4,2 ## @D40_SREG_LNK_PHYS_LNK_MASK
	.no_dead_strip	_d40_tx_is_linked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d40_tx_is_linked
_d40_tx_is_linked:                      ; @d40_tx_is_linked
	.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
	bl	_chan_is_logical
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh0:
	adrp	x19, _D40_MEM_LCSP3_DLOS_MASK@GOTPAGE
Lloh1:
	ldr	x19, [x19, _D40_MEM_LCSP3_DLOS_MASK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_chan_base
Lloh2:
	adrp	x8, _D40_CHAN_REG_SDLNK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D40_CHAN_REG_SDLNK@GOTPAGEOFF]
Lloh4:
	ldrsw	x8, [x8]
	add	x0, x0, x8, lsl #2
Lloh5:
	adrp	x19, _D40_SREG_LNK_PHYS_LNK_MASK@GOTPAGE
Lloh6:
	ldr	x19, [x19, _D40_SREG_LNK_PHYS_LNK_MASK@GOTPAGEOFF]
LBB0_3:
	bl	_readl
	ldr	w8, [x19]
	and	w0, w8, w0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_D40_MEM_LCSP3_DLOS_MASK,4,2    ; @D40_MEM_LCSP3_DLOS_MASK
	.comm	_D40_CHAN_REG_SDLNK,4,2         ; @D40_CHAN_REG_SDLNK
	.comm	_D40_SREG_LNK_PHYS_LNK_MASK,4,2 ; @D40_SREG_LNK_PHYS_LNK_MASK
	.no_dead_strip	_d40_tx_is_linked
.subsections_via_symbols
