	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_pcb
_send_pcb:                              ## @send_pcb
	.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, %r13
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_check_3c505_dma
	cmpq	$0, 32(%r15)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 24(%r14)
	je	LBB0_2
LBB0_3:
	leaq	8(%r15), %rbx
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_elp_debug@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	$3, (%rax)
	jl	LBB0_20
## %bb.5:
	movl	4(%r12), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_20
LBB0_6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_set_hsf
	movl	(%r12), %edi
	movl	16(%r13), %esi
	callq	_send_pcb_slow
	testq	%rax, %rax
	jne	LBB0_19
## %bb.7:
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%r12), %edi
	movl	(%r13), %esi
	callq	_send_pcb_fast
	testq	%rax, %rax
	je	LBB0_8
LBB0_12:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%r14d, %r14d
LBB0_19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	jmp	LBB0_20
LBB0_2:
	xorl	%r14d, %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	$0, (%r13)
	jle	LBB0_13
## %bb.9:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	8(%r13), %rax
	movl	(%rax,%r14,4), %esi
	callq	_send_pcb_fast
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jl	LBB0_11
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	orl	$3, %edi
	movq	%r12, %rsi
	callq	_outb_control
	movl	(%r13), %edi
	addl	$2, %edi
	movl	(%r12), %esi
	callq	_outb_command
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_jiffies@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	addl	%edi, %eax
	movslq	%eax, %rbx
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	movl	$0, %r14d
	je	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_GET_ASF
	cmpl	$128, %eax
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$129, %eax
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_14
LBB0_17:
	movq	_elp_debug@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.18:
	movl	(%r12), %edi
	movl	4(%r12), %ebx
	callq	_inb_status
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_19
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movl	$1, %r14d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_elp_debug,4,2                  ## @elp_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: send_pcb entered while threaded\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
L_.str.1:                               ## @.str.1
	.asciz	"%s: timeout waiting for PCB acknowledge (status %02x)\n"

	.no_dead_strip	_send_pcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_pcb
_send_pcb:                              ; @send_pcb
	.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, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x20
	bl	_check_3c505_dma
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_5
LBB0_2:
	add	x19, x22, #8
	mov	w0, #1
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _elp_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _elp_debug@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_5
; %bb.4:
	ldr	w1, [x20, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	mov	w1, #0
	bl	_set_hsf
	ldr	w0, [x20]
	ldr	w1, [x21, #16]
	bl	_send_pcb_slow
	cbnz	x0, LBB0_9
; %bb.7:
	add	x23, x22, #16
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_send_pcb_fast
	cbz	x0, LBB0_11
LBB0_8:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
LBB0_9:
	mov	w0, #0
	str	xzr, [x19]
LBB0_10:
	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_11:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.12:
	mov	x24, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x8, [x21, #8]
	ldr	w1, [x8, x24, lsl #2]
	bl	_send_pcb_fast
	cbnz	x0, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21]
	cmp	x24, x8
	b.lt	LBB0_13
LBB0_15:
	ldr	w8, [x22]
	orr	w0, w8, #0x3
	mov	x1, x20
	bl	_outb_control
	ldr	w8, [x21]
	add	w0, w8, #2
	ldr	w1, [x20]
	bl	_outb_command
	mov	x0, x23
	bl	_spin_unlock_irqrestore
Lloh5:
	adrp	x22, _jiffies@GOTPAGE
Lloh6:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh7:
	adrp	x8, _HZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh9:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	add	w8, w8, w0
	sxtw	x21, w8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x20]
	bl	_GET_ASF
	cmp	w0, #128
	b.eq	LBB0_9
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w0, #129
	b.eq	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x22]
	b	LBB0_16
LBB0_20:
Lloh10:
	adrp	x8, _elp_debug@GOTPAGE
Lloh11:
	ldr	x8, [x8, _elp_debug@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.21:
	ldp	w0, w21, [x20]
	bl	_inb_status
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	b	LBB0_9
LBB0_22:
	str	xzr, [x19]
	mov	w0, #1
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_elp_debug,4,2                  ; @elp_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: send_pcb entered while threaded\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
l_.str.1:                               ; @.str.1
	.asciz	"%s: timeout waiting for PCB acknowledge (status %02x)\n"

	.no_dead_strip	_send_pcb
.subsections_via_symbols
