	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pci_find_next_ht_cap
___pci_find_next_ht_cap:                ## @__pci_find_next_ht_cap
	.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
	movl	%edx, %r14d
	movl	%esi, %edx
	movq	%rdi, %r12
	movq	_PCI_FIND_CAP_TTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_HT_CAPTYPE_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HT_CAPTYPE_HOST@GOTPCREL(%rip), %rdi
	movq	_HT_3BIT_CAP_MASK@GOTPCREL(%rip), %rcx
	movq	%rcx, %rsi
	cmpl	%r14d, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_HT_5BIT_CAP_MASK@GOTPCREL(%rip), %rsi
LBB0_2:
	cmpl	%r14d, %eax
	cmoveq	%rcx, %rsi
	movl	(%rsi), %r15d
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movq	_PCI_CAP_ID_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	callq	___pci_find_next_cap_ttl
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.3:
	movq	_PCIBIOS_SUCCESSFUL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	3(%rbx), %esi
	movq	%r12, %rdi
	leaq	-48(%rbp), %rdx
	callq	_pci_read_config_byte
	cmpl	(%r13), %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %eax
	andl	%r15d, %eax
	cmpl	%r14d, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movq	_PCI_CAP_LIST_NEXT@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	_PCI_CAP_ID_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	leaq	-44(%rbp), %r8
	callq	___pci_find_next_cap_ttl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movl	%ebx, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_FIND_CAP_TTL,4,2           ## @PCI_FIND_CAP_TTL
	.comm	_HT_CAPTYPE_SLAVE,4,2           ## @HT_CAPTYPE_SLAVE
	.comm	_HT_CAPTYPE_HOST,4,2            ## @HT_CAPTYPE_HOST
	.comm	_HT_3BIT_CAP_MASK,4,2           ## @HT_3BIT_CAP_MASK
	.comm	_HT_5BIT_CAP_MASK,4,2           ## @HT_5BIT_CAP_MASK
	.comm	_PCI_CAP_ID_HT,4,2              ## @PCI_CAP_ID_HT
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ## @PCIBIOS_SUCCESSFUL
	.comm	_PCI_CAP_LIST_NEXT,4,2          ## @PCI_CAP_LIST_NEXT
	.no_dead_strip	___pci_find_next_ht_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pci_find_next_ht_cap
___pci_find_next_ht_cap:                ; @__pci_find_next_ht_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x2, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PCI_FIND_CAP_TTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_FIND_CAP_TTL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _HT_CAPTYPE_SLAVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HT_CAPTYPE_SLAVE@GOTPAGEOFF]
	str	w8, [sp, #12]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _HT_CAPTYPE_HOST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HT_CAPTYPE_HOST@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w19
	ccmp	w8, w19, #4, ne
Lloh9:
	adrp	x8, _HT_3BIT_CAP_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HT_3BIT_CAP_MASK@GOTPAGEOFF]
Lloh11:
	adrp	x9, _HT_5BIT_CAP_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HT_5BIT_CAP_MASK@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w22, [x8]
	ldr	w0, [x0, #4]
	ldr	w1, [x20]
Lloh13:
	adrp	x23, _PCI_CAP_ID_HT@GOTPAGE
Lloh14:
	ldr	x23, [x23, _PCI_CAP_ID_HT@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #12
	bl	___pci_find_next_cap_ttl
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.1:
Lloh15:
	adrp	x24, _PCIBIOS_SUCCESSFUL@GOTPAGE
Lloh16:
	ldr	x24, [x24, _PCIBIOS_SUCCESSFUL@GOTPAGEOFF]
Lloh17:
	adrp	x25, _PCI_CAP_LIST_NEXT@GOTPAGE
Lloh18:
	ldr	x25, [x25, _PCI_CAP_LIST_NEXT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w21, #3
	add	x2, sp, #8
	mov	x0, x20
	bl	_pci_read_config_byte
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #8]
	and	w8, w8, w22
	cmp	w8, w19
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w1, w0, [x20]
	ldr	w8, [x25]
	add	w2, w8, w21
	ldr	w3, [x23]
	add	x4, sp, #12
	bl	___pci_find_next_cap_ttl
	mov	x21, x0
	cbnz	w0, LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_FIND_CAP_TTL,4,2           ; @PCI_FIND_CAP_TTL
	.comm	_HT_CAPTYPE_SLAVE,4,2           ; @HT_CAPTYPE_SLAVE
	.comm	_HT_CAPTYPE_HOST,4,2            ; @HT_CAPTYPE_HOST
	.comm	_HT_3BIT_CAP_MASK,4,2           ; @HT_3BIT_CAP_MASK
	.comm	_HT_5BIT_CAP_MASK,4,2           ; @HT_5BIT_CAP_MASK
	.comm	_PCI_CAP_ID_HT,4,2              ; @PCI_CAP_ID_HT
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ; @PCIBIOS_SUCCESSFUL
	.comm	_PCI_CAP_LIST_NEXT,4,2          ; @PCI_CAP_LIST_NEXT
	.no_dead_strip	___pci_find_next_ht_cap
.subsections_via_symbols
