	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lynx_devctl
_lynx_devctl:                           ## @lynx_devctl
	.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, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	(%rdi), %r14
	movq	_packet_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIST_HEAD
	leal	-131(%rbx), %eax
	cmpl	$10, %eax
	ja	LBB0_56
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_35:
	movq	_CYCLE_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	jmp	LBB0_36
LBB0_37:
	movq	_LINK_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$22, %r12d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_reg_read
	andl	$4128768, %eax                  ## imm = 0x3F0000
	orl	%eax, %r12d
	movq	%r14, %rdi
	movl	%ebx, %esi
LBB0_36:
	movl	%r12d, %edx
	callq	_reg_write
	xorl	%r15d, %r15d
	jmp	LBB0_59
LBB0_2:
	movq	_LINK_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_reg_read
	movq	_LINK_INT_PHY_BUSRESET@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	testl	%eax, (%rcx)
	jne	LBB0_59
## %bb.3:
	leal	-128(%r12), %eax
	cmpl	$8, %eax
	ja	LBB0_33
## %bb.4:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	cmpl	$0, 48(%r14)
	je	LBB0_21
## %bb.16:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_phy_reg
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.17:
	testb	$-128, %al
	je	LBB0_19
## %bb.18:
	andl	$-129, %eax
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_set_phy_reg
LBB0_19:
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_phy_reg
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.20:
	movl	%eax, %ebx
	orl	$64, %ebx
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_9
LBB0_56:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.13(%rip), %rdx
	movl	%ebx, %ecx
LBB0_57:
	xorl	%eax, %eax
	callq	_PRINT
LBB0_58:
	movl	$-1, %r15d
	jmp	LBB0_59
LBB0_34:
	movq	_CYCLE_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_read                       ## TAILCALL
LBB0_41:
	leaq	20(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_CHANNEL_ASYNC_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DMA_CHAN_CTRL
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_reg_write
	leaq	40(%r14), %rdi
	movq	_packet_list@GOTPCREL(%rip), %rsi
	callq	_list_splice_init
	leaq	32(%r14), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_43
## %bb.42:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.9(%rip), %rdx
	xorl	%eax, %eax
	callq	_PRINTD
	jmp	LBB0_53
LBB0_38:
	movq	_LINK_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LINK_CONTROL_CYCMASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	testl	%r12d, %r12d
	je	LBB0_40
## %bb.39:
	callq	_reg_set_bits
	xorl	%r15d, %r15d
	jmp	LBB0_59
LBB0_43:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.10(%rip), %rdx
	xorl	%eax, %eax
	callq	_PRINT
	movl	36(%r14), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_get_pcl
	movl	32(%r14), %edi
	callq	_driver_packet
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_list_del_init
	movl	28(%r14), %esi
	movl	44(%r14), %edi
	movl	8(%r15), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	callq	_pci_unmap_single
	movl	4(%r15), %edx
	testl	%edx, %edx
	je	LBB0_45
## %bb.44:
	movl	24(%r14), %esi
	movl	44(%r14), %edi
	movl	(%rbx), %ecx
	callq	_pci_unmap_single
LBB0_45:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	-48(%rbp), %eax
	movq	_DMA_CHAN_STAT_PKTCMPL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_50
## %bb.46:
	movq	_DMA_CHAN_STAT_SPECIALACK@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	shrl	$15, %ebx
	andl	$15, %ebx
	testl	%eax, (%rcx)
	je	LBB0_52
## %bb.47:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.11(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_PRINTD
	cmpl	$1, %ebx
	jne	LBB0_48
## %bb.49:
	movq	_ACKX_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_51
LBB0_40:
	callq	_reg_clear_bits
	xorl	%r15d, %r15d
	jmp	LBB0_59
LBB0_50:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.12(%rip), %rdx
	xorl	%eax, %eax
	callq	_PRINT
	movq	_ACKX_ABORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_51
LBB0_48:
	movq	_ACKX_SEND_ERROR@GOTPCREL(%rip), %rax
LBB0_51:
	movl	(%rax), %ebx
LBB0_52:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_hpsb_packet_sent
LBB0_53:
	movq	_packet_list@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_list_empty
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_59
## %bb.54:
	movq	_ACKX_ABORTED@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_driver_packet
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_list_del_init
	movl	(%r12), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_hpsb_packet_sent
	movq	%r14, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_55
	jmp	LBB0_59
LBB0_24:
	cmpl	$0, 48(%r14)
	je	LBB0_30
## %bb.25:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_phy_reg
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.26:
	testb	$-128, %al
	jne	LBB0_28
## %bb.27:
	orl	$128, %eax
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_set_phy_reg
LBB0_28:
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_phy_reg
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.29:
	movl	%eax, %ebx
	orl	$64, %ebx
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_9
LBB0_5:
	cmpl	$0, 48(%r14)
	je	LBB0_11
## %bb.6:
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_phy_reg
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	orl	$64, %ebx
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_9:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_PRINT
	movq	$-1, (%r14)
	movq	%r14, %rdi
	movl	$5, %esi
	jmp	LBB0_10
LBB0_33:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.8(%rip), %rdx
	movl	%r12d, %ecx
	jmp	LBB0_57
LBB0_21:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_PRINT
LBB0_22:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_phy_reg
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.23:
	movl	%eax, %ebx
	andl	$-193, %ebx
	orl	$64, %ebx
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_14
LBB0_30:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_PRINT
LBB0_31:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_phy_reg
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.32:
	movl	%eax, %ebx
	orl	$192, %ebx
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_14
LBB0_11:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_PRINT
LBB0_12:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_phy_reg
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.13:
	movl	%eax, %ebx
	orl	$64, %ebx
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_14:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_PRINT
	movq	$-1, (%r14)
	movq	%r14, %rdi
	movl	$1, %esi
LBB0_10:
	movl	%ebx, %edx
	callq	_set_phy_reg
LBB0_59:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_PRINT
	jmp	LBB0_58
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_56, LBB0_56-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
LJTI0_0:
	.long	L0_0_set_35
	.long	L0_0_set_37
	.long	L0_0_set_2
	.long	L0_0_set_56
	.long	L0_0_set_56
	.long	L0_0_set_56
	.long	L0_0_set_56
	.long	L0_0_set_56
	.long	L0_0_set_34
	.long	L0_0_set_41
	.long	L0_0_set_38
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_24, LBB0_24-LJTI0_1
.set L0_1_set_5, LBB0_5-LJTI0_1
.set L0_1_set_33, LBB0_33-LJTI0_1
.set L0_1_set_22, LBB0_22-LJTI0_1
.set L0_1_set_31, LBB0_31-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
LJTI0_1:
	.long	L0_1_set_15
	.long	L0_1_set_24
	.long	L0_1_set_5
	.long	L0_1_set_33
	.long	L0_1_set_33
	.long	L0_1_set_33
	.long	L0_1_set_22
	.long	L0_1_set_31
	.long	L0_1_set_12
	.end_data_region
                                        ## -- End function
	.comm	_packet_list,4,2                ## @packet_list
	.comm	_LINK_INT_STATUS,4,2            ## @LINK_INT_STATUS
	.comm	_LINK_INT_PHY_BUSRESET,4,2      ## @LINK_INT_PHY_BUSRESET
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot reset bus, because read phy reg failed"

	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
L_.str.1:                               ## @.str.1
	.asciz	"resetting bus (short bus reset) on request"

L_.str.2:                               ## @.str.2
	.asciz	"cannot do short bus reset, because of old phy"

L_.str.3:                               ## @.str.3
	.asciz	"resetting bus (long bus reset) on request"

L_.str.4:                               ## @.str.4
	.asciz	"resetting bus (short bus reset, no force_root) on request"

L_.str.5:                               ## @.str.5
	.asciz	"resetting bus (long bus reset, no force_root) on request"

L_.str.6:                               ## @.str.6
	.asciz	"resetting bus (short bus reset, force_root set) on request"

L_.str.7:                               ## @.str.7
	.asciz	"resetting bus (long bus reset, force_root set) on request"

L_.str.8:                               ## @.str.8
	.asciz	"unknown argument for reset_bus command %d"

	.comm	_CYCLE_TIMER,4,2                ## @CYCLE_TIMER
	.comm	_LINK_ID,4,2                    ## @LINK_ID
	.comm	_LINK_CONTROL,4,2               ## @LINK_CONTROL
	.comm	_LINK_CONTROL_CYCMASTER,4,2     ## @LINK_CONTROL_CYCMASTER
	.comm	_CHANNEL_ASYNC_SEND,4,2         ## @CHANNEL_ASYNC_SEND
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
L_.str.9:                               ## @.str.9
	.asciz	"no async packet in PCL to cancel"

L_.str.10:                              ## @.str.10
	.asciz	"cancelling async packet, that was already in PCL"

	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_DMA_CHAN_STAT_PKTCMPL,4,2      ## @DMA_CHAN_STAT_PKTCMPL
	.comm	_DMA_CHAN_STAT_SPECIALACK,4,2   ## @DMA_CHAN_STAT_SPECIALACK
L_.str.11:                              ## @.str.11
	.asciz	"special ack %d"

	.comm	_ACKX_TIMEOUT,4,2               ## @ACKX_TIMEOUT
	.comm	_ACKX_SEND_ERROR,4,2            ## @ACKX_SEND_ERROR
L_.str.12:                              ## @.str.12
	.asciz	"async packet was not completed"

	.comm	_ACKX_ABORTED,4,2               ## @ACKX_ABORTED
L_.str.13:                              ## @.str.13
	.asciz	"unknown devctl command %d"

	.comm	_CHANNEL_ISO_RCV,4,2            ## @CHANNEL_ISO_RCV
	.comm	_DMA_WORD1_CMP_ENABLE_MASTER,4,2 ## @DMA_WORD1_CMP_ENABLE_MASTER
	.no_dead_strip	_lynx_devctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lynx_devctl
_lynx_devctl:                           ; @lynx_devctl
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _packet_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _packet_list@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LIST_HEAD
	sub	w8, w22, #131
	cmp	w8, #10
	b.hi	LBB0_14
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _CYCLE_TIMER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CYCLE_TIMER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _LINK_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LINK_ID@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_reg_read
	and	w2, w0, #0x3f0000
	bfi	w2, w21, #22, #10
	mov	x0, x19
	mov	x1, x20
LBB0_4:
	bl	_reg_write
	b	LBB0_55
LBB0_5:
Lloh11:
	adrp	x8, _LINK_INT_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LINK_INT_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_read
Lloh14:
	adrp	x8, _LINK_INT_PHY_BUSRESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LINK_INT_PHY_BUSRESET@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_55
; %bb.6:
	sub	w8, w21, #128
	cmp	w8, #8
	b.hi	LBB0_43
; %bb.7:
Lloh17:
	adrp	x9, lJTI0_1@PAGE
Lloh18:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_8
	ldrh	w11, [x9, x8, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_44
; %bb.9:
	mov	x0, x19
	mov	w1, #1
	bl	_get_phy_reg
	cmn	w0, #1
	b.eq	LBB0_57
; %bb.10:
	tbz	w0, #7, LBB0_12
; %bb.11:
	and	w2, w0, #0xffffff7f
	mov	x0, x19
	mov	w1, #1
	bl	_set_phy_reg
LBB0_12:
	mov	x0, x19
	mov	w1, #5
	bl	_get_phy_reg
	cmn	w0, #1
	b.eq	LBB0_57
; %bb.13:
	orr	w20, w0, #0x40
Lloh19:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh22:
	adrp	x2, l_.str.4@PAGE
Lloh23:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_42
LBB0_14:
Lloh24:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	str	x22, [sp]
Lloh27:
	adrp	x2, l_.str.13@PAGE
Lloh28:
	add	x2, x2, l_.str.13@PAGEOFF
LBB0_15:
	bl	_PRINT
	mov	w0, #-1
	b	LBB0_56
LBB0_16:
Lloh29:
	adrp	x8, _CYCLE_TIMER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CYCLE_TIMER@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_reg_read
LBB0_17:
	add	x21, x19, #20
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh32:
	adrp	x8, _CHANNEL_ASYNC_SEND@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CHANNEL_ASYNC_SEND@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_DMA_CHAN_CTRL
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_reg_write
	add	x0, x19, #40
Lloh35:
	adrp	x1, _packet_list@GOTPAGE
Lloh36:
	ldr	x1, [x1, _packet_list@GOTPAGEOFF]
	bl	_list_splice_init
	add	x0, x19, #32
	bl	_list_empty
	cbz	w0, LBB0_21
; %bb.18:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh37:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh40:
	adrp	x2, l_.str.9@PAGE
Lloh41:
	add	x2, x2, l_.str.9@PAGEOFF
	bl	_PRINTD
	b	LBB0_30
LBB0_19:
Lloh42:
	adrp	x8, _LINK_CONTROL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _LINK_CONTROL@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x8, _LINK_CONTROL_CYCMASTER@GOTPAGE
Lloh46:
	ldr	x8, [x8, _LINK_CONTROL_CYCMASTER@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x19
	cbz	w21, LBB0_26
; %bb.20:
	bl	_reg_set_bits
	b	LBB0_55
LBB0_21:
Lloh48:
	adrp	x23, _KERN_INFO@GOTPAGE
Lloh49:
	ldr	x23, [x23, _KERN_INFO@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x19, #8]
Lloh50:
	adrp	x2, l_.str.10@PAGE
Lloh51:
	add	x2, x2, l_.str.10@PAGEOFF
	bl	_PRINT
	ldr	w1, [x19, #36]
	add	x2, sp, #8
	mov	x0, x19
	bl	_get_pcl
	ldr	w0, [x19, #32]
	bl	_driver_packet
	mov	x22, x0
	bl	_list_del_init
	ldr	w0, [x19, #44]
	ldr	w1, [x19, #28]
	ldr	w2, [x22, #8]
Lloh52:
	adrp	x24, _PCI_DMA_TODEVICE@GOTPAGE
Lloh53:
	ldr	x24, [x24, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	ldr	w3, [x24]
	bl	_pci_unmap_single
	ldr	w2, [x22, #4]
	cbz	w2, LBB0_23
; %bb.22:
	ldr	w0, [x19, #44]
	ldr	w1, [x19, #24]
	ldr	w3, [x24]
	bl	_pci_unmap_single
LBB0_23:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w8, [sp, #8]
Lloh54:
	adrp	x9, _DMA_CHAN_STAT_PKTCMPL@GOTPAGE
Lloh55:
	ldr	x9, [x9, _DMA_CHAN_STAT_PKTCMPL@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.24:
Lloh57:
	adrp	x9, _DMA_CHAN_STAT_SPECIALACK@GOTPAGE
Lloh58:
	ldr	x9, [x9, _DMA_CHAN_STAT_SPECIALACK@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	ubfx	w21, w8, #15, #4
	tst	w9, w8
	b.eq	LBB0_29
; %bb.25:
	ldr	w0, [x23]
	ldr	w1, [x19, #8]
	str	x21, [sp]
Lloh60:
	adrp	x2, l_.str.11@PAGE
Lloh61:
	add	x2, x2, l_.str.11@PAGEOFF
	bl	_PRINTD
Lloh62:
	adrp	x8, _ACKX_TIMEOUT@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ACKX_TIMEOUT@GOTPAGEOFF]
Lloh64:
	adrp	x9, _ACKX_SEND_ERROR@GOTPAGE
Lloh65:
	ldr	x9, [x9, _ACKX_SEND_ERROR@GOTPAGEOFF]
	cmp	w21, #1
	csel	x8, x8, x9, eq
	b	LBB0_28
LBB0_26:
	bl	_reg_clear_bits
	b	LBB0_55
LBB0_27:
	ldr	w0, [x23]
	ldr	w1, [x19, #8]
Lloh66:
	adrp	x2, l_.str.12@PAGE
Lloh67:
	add	x2, x2, l_.str.12@PAGEOFF
	bl	_PRINT
Lloh68:
	adrp	x8, _ACKX_ABORTED@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ACKX_ABORTED@GOTPAGEOFF]
LBB0_28:
	ldr	w21, [x8]
LBB0_29:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_hpsb_packet_sent
LBB0_30:
Lloh70:
	adrp	x19, _packet_list@GOTPAGE
Lloh71:
	ldr	x19, [x19, _packet_list@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_empty
	cbnz	w0, LBB0_55
; %bb.31:
Lloh72:
	adrp	x22, _ACKX_ABORTED@GOTPAGE
Lloh73:
	ldr	x22, [x22, _ACKX_ABORTED@GOTPAGEOFF]
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_driver_packet
	mov	x21, x0
	bl	_list_del_init
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_hpsb_packet_sent
	mov	x0, x19
	bl	_list_empty
	cbz	w0, LBB0_32
	b	LBB0_55
LBB0_33:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_47
; %bb.34:
	mov	x0, x19
	mov	w1, #1
	bl	_get_phy_reg
	cmn	w0, #1
	b.eq	LBB0_57
; %bb.35:
	tbnz	w0, #7, LBB0_37
; %bb.36:
	orr	w2, w0, #0x80
	mov	x0, x19
	mov	w1, #1
	bl	_set_phy_reg
LBB0_37:
	mov	x0, x19
	mov	w1, #5
	bl	_get_phy_reg
	cmn	w0, #1
	b.eq	LBB0_57
; %bb.38:
	orr	w20, w0, #0x40
Lloh74:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh75:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh77:
	adrp	x2, l_.str.6@PAGE
Lloh78:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_42
LBB0_39:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_50
; %bb.40:
	mov	x0, x19
	mov	w1, #5
	bl	_get_phy_reg
	cmn	w0, #1
	b.eq	LBB0_57
; %bb.41:
	orr	w20, w0, #0x40
Lloh79:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh80:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh82:
	adrp	x2, l_.str.1@PAGE
Lloh83:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_42:
	bl	_PRINT
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19]
	mov	x0, x19
	mov	w1, #5
	b	LBB0_54
LBB0_43:
Lloh84:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh85:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	str	x21, [sp]
Lloh87:
	adrp	x2, l_.str.8@PAGE
Lloh88:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_15
LBB0_44:
Lloh89:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh90:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh91:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh92:
	adrp	x2, l_.str.2@PAGE
Lloh93:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_PRINT
LBB0_45:
	mov	x0, x19
	mov	w1, #1
	bl	_get_phy_reg
	cmn	w0, #1
	b.eq	LBB0_57
; %bb.46:
	and	w8, w0, #0xffffff3f
	orr	w20, w8, #0x40
Lloh94:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh95:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh96:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh97:
	adrp	x2, l_.str.5@PAGE
Lloh98:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_53
LBB0_47:
Lloh99:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh100:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh101:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh102:
	adrp	x2, l_.str.2@PAGE
Lloh103:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_PRINT
LBB0_48:
	mov	x0, x19
	mov	w1, #1
	bl	_get_phy_reg
	cmn	w0, #1
	b.eq	LBB0_57
; %bb.49:
	orr	w20, w0, #0xc0
Lloh104:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh105:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh106:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh107:
	adrp	x2, l_.str.7@PAGE
Lloh108:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_53
LBB0_50:
Lloh109:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh110:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh111:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh112:
	adrp	x2, l_.str.2@PAGE
Lloh113:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_PRINT
LBB0_51:
	mov	x0, x19
	mov	w1, #1
	bl	_get_phy_reg
	cmn	w0, #1
	b.eq	LBB0_57
; %bb.52:
	orr	w20, w0, #0x40
Lloh114:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh115:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh116:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh117:
	adrp	x2, l_.str.3@PAGE
Lloh118:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_53:
	bl	_PRINT
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19]
	mov	x0, x19
	mov	w1, #1
LBB0_54:
	mov	x2, x20
	bl	_set_phy_reg
LBB0_55:
	mov	w0, #0
LBB0_56:
	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
LBB0_57:
Lloh119:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh120:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh121:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh122:
	adrp	x2, l_.str@PAGE
Lloh123:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpAdd	Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.p2align	1
lJTI0_1:
	.short	(LBB0_8-LBB0_8)>>2
	.short	(LBB0_33-LBB0_8)>>2
	.short	(LBB0_39-LBB0_8)>>2
	.short	(LBB0_43-LBB0_8)>>2
	.short	(LBB0_43-LBB0_8)>>2
	.short	(LBB0_43-LBB0_8)>>2
	.short	(LBB0_45-LBB0_8)>>2
	.short	(LBB0_48-LBB0_8)>>2
	.short	(LBB0_51-LBB0_8)>>2
                                        ; -- End function
	.comm	_packet_list,4,2                ; @packet_list
	.comm	_LINK_INT_STATUS,4,2            ; @LINK_INT_STATUS
	.comm	_LINK_INT_PHY_BUSRESET,4,2      ; @LINK_INT_PHY_BUSRESET
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot reset bus, because read phy reg failed"

	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
l_.str.1:                               ; @.str.1
	.asciz	"resetting bus (short bus reset) on request"

l_.str.2:                               ; @.str.2
	.asciz	"cannot do short bus reset, because of old phy"

l_.str.3:                               ; @.str.3
	.asciz	"resetting bus (long bus reset) on request"

l_.str.4:                               ; @.str.4
	.asciz	"resetting bus (short bus reset, no force_root) on request"

l_.str.5:                               ; @.str.5
	.asciz	"resetting bus (long bus reset, no force_root) on request"

l_.str.6:                               ; @.str.6
	.asciz	"resetting bus (short bus reset, force_root set) on request"

l_.str.7:                               ; @.str.7
	.asciz	"resetting bus (long bus reset, force_root set) on request"

l_.str.8:                               ; @.str.8
	.asciz	"unknown argument for reset_bus command %d"

	.comm	_CYCLE_TIMER,4,2                ; @CYCLE_TIMER
	.comm	_LINK_ID,4,2                    ; @LINK_ID
	.comm	_LINK_CONTROL,4,2               ; @LINK_CONTROL
	.comm	_LINK_CONTROL_CYCMASTER,4,2     ; @LINK_CONTROL_CYCMASTER
	.comm	_CHANNEL_ASYNC_SEND,4,2         ; @CHANNEL_ASYNC_SEND
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
l_.str.9:                               ; @.str.9
	.asciz	"no async packet in PCL to cancel"

l_.str.10:                              ; @.str.10
	.asciz	"cancelling async packet, that was already in PCL"

	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_DMA_CHAN_STAT_PKTCMPL,4,2      ; @DMA_CHAN_STAT_PKTCMPL
	.comm	_DMA_CHAN_STAT_SPECIALACK,4,2   ; @DMA_CHAN_STAT_SPECIALACK
l_.str.11:                              ; @.str.11
	.asciz	"special ack %d"

	.comm	_ACKX_TIMEOUT,4,2               ; @ACKX_TIMEOUT
	.comm	_ACKX_SEND_ERROR,4,2            ; @ACKX_SEND_ERROR
l_.str.12:                              ; @.str.12
	.asciz	"async packet was not completed"

	.comm	_ACKX_ABORTED,4,2               ; @ACKX_ABORTED
l_.str.13:                              ; @.str.13
	.asciz	"unknown devctl command %d"

	.comm	_CHANNEL_ISO_RCV,4,2            ; @CHANNEL_ISO_RCV
	.comm	_DMA_WORD1_CMP_ENABLE_MASTER,4,2 ; @DMA_WORD1_CMP_ENABLE_MASTER
	.no_dead_strip	_lynx_devctl
.subsections_via_symbols
