	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_check_htlink
_ipath_check_htlink:                    ## @ipath_check_htlink
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	addl	$13, %ebx
	movq	8(%rdi), %rdi
	leaq	-20(%rbp), %rdx
	movl	%ebx, %esi
	callq	_pci_read_config_byte
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_10:
	movl	(%r14), %ebx
	addl	$17, %ebx
	movq	8(%r14), %rdi
	leaq	-20(%rbp), %rdx
	movl	%ebx, %esi
	callq	_pci_read_config_byte
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_12:
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_20:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	-20(%rbp), %edx
	testb	$-16, %dl
	je	LBB0_10
## %bb.4:
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$4, %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_ipath_cdbg
	movq	8(%r14), %rdi
	movl	-20(%rbp), %edx
	movl	%ebx, %esi
	callq	_pci_write_config_byte
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	callq	_ipath_dbg
LBB0_6:
	movq	8(%r14), %rdi
	leaq	-20(%rbp), %rdx
	movl	%ebx, %esi
	callq	_pci_read_config_byte
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_13:
	movl	-20(%rbp), %edx
	testb	$-16, %dl
	je	LBB0_20
## %bb.14:
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$4, %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %ecx
	callq	_ipath_cdbg
	movq	8(%r14), %rdi
	movl	-20(%rbp), %edx
	movl	%ebx, %esi
	callq	_pci_write_config_byte
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rdi
	movl	$1, %esi
	callq	_ipath_dbg
LBB0_16:
	movq	8(%r14), %rdi
	leaq	-20(%rbp), %rdx
	movl	%ebx, %esi
	callq	_pci_read_config_byte
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_8:
	movl	-20(%rbp), %ecx
	testb	$-16, %cl
	je	LBB0_10
## %bb.9:
	movq	8(%r14), %rdi
	sarl	$4, %ecx
	leaq	L_.str.4(%rip), %rsi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_10
LBB0_18:
	movl	-20(%rbp), %ecx
	testb	$-16, %cl
	je	LBB0_20
## %bb.19:
	movq	8(%r14), %rdi
	sarl	$4, %ecx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't read linkerror%d of HT slave/primary block\n"

	.comm	_VERBOSE,4,2                    ## @VERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"HT linkerr%d bits 0x%x set, clearing\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed write to clear HT linkerror%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Couldn't reread linkerror%d of HT slave/primary block\n"

L_.str.4:                               ## @.str.4
	.asciz	"HT linkerror%d bits 0x%x couldn't be cleared\n"

	.no_dead_strip	_ipath_check_htlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_check_htlink
_ipath_check_htlink:                    ; @ipath_check_htlink
	.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
	mov	x19, x0
	ldr	w8, [x0]
	add	w20, w8, #13
	ldr	x0, [x0, #8]
	add	x2, sp, #12
	mov	x1, x20
	bl	_pci_read_config_byte
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	w2, #0
	bl	_dev_info
LBB0_3:
	ldr	w8, [x19]
	add	w20, w8, #17
	ldr	x0, [x19, #8]
	add	x2, sp, #12
	mov	x1, x20
	bl	_pci_read_config_byte
	cbz	x0, LBB0_12
; %bb.4:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	w2, #1
	bl	_dev_info
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldr	w8, [sp, #12]
	tst	w8, #0xf0
	b.eq	LBB0_3
; %bb.8:
Lloh4:
	adrp	x9, _VERBOSE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VERBOSE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
	asr	w2, w8, #4
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #0
	bl	_ipath_cdbg
	ldr	x0, [x19, #8]
	ldr	w2, [sp, #12]
	mov	x1, x20
	bl	_pci_write_config_byte
	cbz	x0, LBB0_10
; %bb.9:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	bl	_ipath_dbg
LBB0_10:
	ldr	x0, [x19, #8]
	add	x2, sp, #12
	mov	x1, x20
	bl	_pci_read_config_byte
	cbz	x0, LBB0_17
; %bb.11:
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_12:
	ldr	w8, [sp, #12]
	tst	w8, #0xf0
	b.eq	LBB0_6
; %bb.13:
Lloh13:
	adrp	x9, _VERBOSE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VERBOSE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	asr	w2, w8, #4
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #1
	bl	_ipath_cdbg
	ldr	x0, [x19, #8]
	ldr	w2, [sp, #12]
	mov	x1, x20
	bl	_pci_write_config_byte
	cbz	x0, LBB0_15
; %bb.14:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_ipath_dbg
LBB0_15:
	ldr	x0, [x19, #8]
	add	x2, sp, #12
	mov	x1, x20
	bl	_pci_read_config_byte
	cbz	x0, LBB0_19
; %bb.16:
	ldr	x0, [x19, #8]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_17:
	ldr	w8, [sp, #12]
	tst	w8, #0xf0
	b.eq	LBB0_3
; %bb.18:
	ldr	x0, [x19, #8]
	asr	w8, w8, #4
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_19:
	ldr	w8, [sp, #12]
	tst	w8, #0xf0
	b.eq	LBB0_6
; %bb.20:
	ldr	x0, [x19, #8]
	asr	w8, w8, #4
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't read linkerror%d of HT slave/primary block\n"

	.comm	_VERBOSE,4,2                    ; @VERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"HT linkerr%d bits 0x%x set, clearing\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed write to clear HT linkerror%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Couldn't reread linkerror%d of HT slave/primary block\n"

l_.str.4:                               ; @.str.4
	.asciz	"HT linkerror%d bits 0x%x couldn't be cleared\n"

	.no_dead_strip	_ipath_check_htlink
.subsections_via_symbols
