	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_setup_ht_config
_ipath_setup_ht_config:                 ## @ipath_setup_ht_config
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_ipath_ht_irq_update@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	___ht_create_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%ebx, (%r12)
	movq	_PCI_CAP_ID_HT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_pci_find_capability
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movl	%eax, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r12
	leaq	L_.str.2(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_dev_info
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pci_find_next_capability
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	3(%rbx), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_pci_read_config_byte
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %ecx
	testb	$-32, %cl
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_slave_or_pri_blk
	jmp	LBB0_8
LBB0_9:
	movq	_IPATH_SWAP_PIOBUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 4(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ipath_dev_err
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ipath_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipath_ht_irq_update,4,2        ## @ipath_ht_irq_update
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't create interrupt handler: err %d\n"

	.comm	_PCI_CAP_ID_HT,4,2              ## @PCI_CAP_ID_HT
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't find HyperTransport capability; no interrupts\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't read config command @ %d\n"

	.comm	_IPATH_SWAP_PIOBUFS,4,2         ## @IPATH_SWAP_PIOBUFS
	.no_dead_strip	_ipath_setup_ht_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_setup_ht_config
_ipath_setup_ht_config:                 ; @ipath_setup_ht_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ipath_ht_irq_update@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ipath_ht_irq_update@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	w1, #0
	bl	___ht_create_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_9
; %bb.1:
	str	w21, [x19]
Lloh3:
	adrp	x23, _PCI_CAP_ID_HT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PCI_CAP_ID_HT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_pci_find_capability
	cbz	w0, LBB0_10
; %bb.2:
	mov	x21, x0
Lloh5:
	adrp	x22, l_.str.2@PAGE
Lloh6:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_dev_info
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_pci_find_next_capability
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w21, #3
	add	x2, sp, #12
	mov	x0, x20
	bl	_pci_read_config_byte
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [sp, #12]
	tst	w3, #0xe0
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_slave_or_pri_blk
	b	LBB0_4
LBB0_8:
Lloh7:
	adrp	x8, _IPATH_SWAP_PIOBUFS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IPATH_SWAP_PIOBUFS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_11
LBB0_9:
	str	x21, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ipath_dev_err
	b	LBB0_11
LBB0_10:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ipath_dev_err
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ipath_ht_irq_update,4,2        ; @ipath_ht_irq_update
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't create interrupt handler: err %d\n"

	.comm	_PCI_CAP_ID_HT,4,2              ; @PCI_CAP_ID_HT
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't find HyperTransport capability; no interrupts\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't read config command @ %d\n"

	.comm	_IPATH_SWAP_PIOBUFS,4,2         ; @IPATH_SWAP_PIOBUFS
	.no_dead_strip	_ipath_setup_ht_config
.subsections_via_symbols
