	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_hardware_send_packet
_smc_hardware_send_packet:              ## @smc_hardware_send_packet
	.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	%rdi, %r12
	callq	_netdev_priv
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	(%r12), %r14d
	movq	_PNR_ARR@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	%r14, %rdi
	callq	_inw
	movl	%eax, %edx
	sarl	$8, %edx
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_2
## %bb.4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	addl	%eax, 4(%r12)
	movq	(%r13), %rsi
	addq	%r14, %rsi
	movl	%edx, %edi
	callq	_outw
	movq	_PTR_AUTOINC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_POINTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	callq	_outw
	movq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_netdev_dbg
	movq	_DATA_1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	%r14, %rsi
	xorl	%edi, %edi
	callq	_outw
	leal	6(%r13), %edi
	movq	(%rbx), %rsi
	addq	%r14, %rsi
	callq	_outw
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	movl	%r13d, %edx
	sarl	%edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_outsw
	xorl	%edi, %edi
	testb	$1, %r13b
	je	LBB0_6
## %bb.5:
	movslq	%r13d, %rax
	movl	$8192, %edi                     ## imm = 0x2000
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	-4(%rcx,%rax,4), %edi
LBB0_6:
	movq	_DATA_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	callq	_outw
	movq	_IM_TX_INT@GOTPCREL(%rip), %rax
	movq	_IM_TX_EMPTY_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	shll	$8, %ebx
	movq	_INTERRUPT@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	%r14, %rdi
	callq	_inw
	andl	$65280, %eax                    ## imm = 0xFF00
	orl	%eax, %ebx
	movq	(%r13), %rsi
	addq	%r14, %rsi
	movl	%ebx, %edi
	callq	_outw
	movq	_MC_ENQUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MMU_CMD@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r14, %rsi
	callq	_outw
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	%r15, %rdi
	callq	_dev_kfree_skb_irq
	movq	%r12, %rdi
	callq	_netif_trans_update
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_warn
	movq	%r15, %rdi
	callq	_dev_kfree_skb_irq
	movq	$0, (%rbx)
LBB0_3:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_start_queue              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"In XMIT with no packet to send\n"

	.comm	_PNR_ARR,8,3                    ## @PNR_ARR
L_.str.1:                               ## @.str.1
	.asciz	"hardware Tx buffer allocation failed, status %#2.2x\n"

	.comm	_PTR_AUTOINC,4,2                ## @PTR_AUTOINC
	.comm	_POINTER,8,3                    ## @POINTER
L_.str.2:                               ## @.str.2
	.asciz	"Trying to xmit packet of length %d\n"

	.comm	_DATA_1,8,3                     ## @DATA_1
	.comm	_IM_TX_INT,4,2                  ## @IM_TX_INT
	.comm	_IM_TX_EMPTY_INT,4,2            ## @IM_TX_EMPTY_INT
	.comm	_INTERRUPT,8,3                  ## @INTERRUPT
	.comm	_MC_ENQUEUE,4,2                 ## @MC_ENQUEUE
	.comm	_MMU_CMD,8,3                    ## @MMU_CMD
	.no_dead_strip	_smc_hardware_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_hardware_send_packet
_smc_hardware_send_packet:              ; @smc_hardware_send_packet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_netdev_priv
	ldr	x21, [x0]
	cbz	x21, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w24, [x19]
Lloh0:
	adrp	x22, _PNR_ARR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PNR_ARR@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x24
	bl	_inw
	asr	w2, w0, #8
	tbnz	w0, #15, LBB0_6
; %bb.2:
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	add	w8, w9, w8
	str	w8, [x19, #4]
	ldr	x8, [x22]
	add	x1, x8, x24
	mov	x0, x2
	bl	_outw
Lloh2:
	adrp	x8, _PTR_AUTOINC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PTR_AUTOINC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _POINTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _POINTER@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x1, x8, x24
	bl	_outw
	ldr	x22, [x21, #8]
	ldr	w23, [x21]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_netdev_dbg
Lloh10:
	adrp	x25, _DATA_1@GOTPAGE
Lloh11:
	ldr	x25, [x25, _DATA_1@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x24
	mov	w0, #0
	bl	_outw
	add	w0, w23, #6
	ldr	x8, [x25]
	add	x1, x8, x24
	bl	_outw
	ldr	x8, [x25]
	add	x0, x8, x24
	asr	w2, w23, #1
	mov	x1, x22
	bl	_outsw
	mov	w0, #0
	tbz	w23, #0, LBB0_4
; %bb.3:
	sub	w8, w23, #1
	ldr	w8, [x22, w8, sxtw #2]
	orr	w0, w8, #0x2000
LBB0_4:
	ldr	x8, [x25]
	add	x1, x8, x24
	bl	_outw
Lloh12:
	adrp	x8, _IM_TX_INT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IM_TX_INT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IM_TX_EMPTY_INT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IM_TX_EMPTY_INT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w22, w9, w8
Lloh18:
	adrp	x23, _INTERRUPT@GOTPAGE
Lloh19:
	ldr	x23, [x23, _INTERRUPT@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, x24
	bl	_inw
	and	w8, w0, #0xff00
	orr	w0, w8, w22, lsl #8
	ldr	x8, [x23]
	add	x1, x8, x24
	bl	_outw
Lloh20:
	adrp	x8, _MC_ENQUEUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MC_ENQUEUE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _MMU_CMD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MMU_CMD@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x1, x8, x24
	bl	_outw
	str	xzr, [x20]
	mov	x0, x21
	bl	_dev_kfree_skb_irq
	mov	x0, x19
	bl	_netif_trans_update
	b	LBB0_7
LBB0_5:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_netdev_err
LBB0_6:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
	mov	x0, x21
	bl	_dev_kfree_skb_irq
	str	xzr, [x20]
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_netif_start_queue
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"In XMIT with no packet to send\n"

	.comm	_PNR_ARR,8,3                    ; @PNR_ARR
l_.str.1:                               ; @.str.1
	.asciz	"hardware Tx buffer allocation failed, status %#2.2x\n"

	.comm	_PTR_AUTOINC,4,2                ; @PTR_AUTOINC
	.comm	_POINTER,8,3                    ; @POINTER
l_.str.2:                               ; @.str.2
	.asciz	"Trying to xmit packet of length %d\n"

	.comm	_DATA_1,8,3                     ; @DATA_1
	.comm	_IM_TX_INT,4,2                  ; @IM_TX_INT
	.comm	_IM_TX_EMPTY_INT,4,2            ; @IM_TX_EMPTY_INT
	.comm	_INTERRUPT,8,3                  ; @INTERRUPT
	.comm	_MC_ENQUEUE,4,2                 ; @MC_ENQUEUE
	.comm	_MMU_CMD,8,3                    ; @MMU_CMD
	.no_dead_strip	_smc_hardware_send_packet
.subsections_via_symbols
