	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hwm_tx_init                    ## -- Begin function hwm_tx_init
	.p2align	4, 0x90
_hwm_tx_init:                           ## @hwm_tx_init
	.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	%r8d, %r14d
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_NDD_TRACE
	movq	24(%r12), %rax
	movq	_QUEUE_A0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, 8(%r12)
	movq	_TX_DESCRIPTOR@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	shll	$27, %ecx
	addl	$402653184, %ecx                ## imm = 0x18000000
	andl	$402653184, %ecx                ## imm = 0x18000000
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movl	%ebx, 4(%r12)
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DB_TX
	movq	_FC_SYNC_BIT@GOTPCREL(%rip), %rax
	movq	_FC_LLC_PRIOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%r13d, %ecx
	movq	_FC_ASYNC_LLC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_3
## %bb.1:
	addl	$-128, %r13d
	cmpl	$3, %r13d
	ja	LBB0_11
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	_LAN_TX@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %r14d
LBB0_5:
	cmpl	$0, 16(%r12)
	jne	LBB0_7
## %bb.6:
	movq	_LAN_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movq	_RING_DOWN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_DB_TX
LBB0_7:
	movq	8(%r12), %rax
	cmpl	%r15d, (%rax)
	jge	LBB0_10
## %bb.8:
	movq	%r12, %rdi
	callq	_mac_drv_clear_txd
	movq	8(%r12), %rax
	cmpl	%r15d, (%rax)
	jge	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_DB_TX
	movq	_LAN_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movq	_OUT_OF_TXD@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movl	$3, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DB_TX
	movq	8(%r12), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_NDD_TRACE
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_HWM_E0010@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HWM_E0010_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_SMT_PANIC
	jmp	LBB0_5
LBB0_12:
	movq	_LOC_TX@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	movq	_LAN_TX@GOTPCREL(%rip), %rax
	movq	_LOC_TX@GOTPCREL(%rip), %rcx
	orl	(%rax), %r14d
	orl	(%rcx), %r14d
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"THiB"

	.comm	_QUEUE_A0,4,2                   ## @QUEUE_A0
	.comm	_TX_DESCRIPTOR,4,2              ## @TX_DESCRIPTOR
L_.str.1:                               ## @.str.1
	.asciz	"hwm_tx_init: fc = %x, len = %d"

	.comm	_FC_SYNC_BIT,4,2                ## @FC_SYNC_BIT
	.comm	_FC_LLC_PRIOR,4,2               ## @FC_LLC_PRIOR
	.comm	_FC_ASYNC_LLC,4,2               ## @FC_ASYNC_LLC
	.comm	_LAN_TX,4,2                     ## @LAN_TX
	.comm	_LOC_TX,4,2                     ## @LOC_TX
	.comm	_HWM_E0010,4,2                  ## @HWM_E0010
	.comm	_HWM_E0010_MSG,4,2              ## @HWM_E0010_MSG
	.comm	_RING_DOWN,4,2                  ## @RING_DOWN
L_.str.2:                               ## @.str.2
	.asciz	"Ring is down: terminate LAN_TX"

L_.str.3:                               ## @.str.3
	.asciz	"Out of TxDs, terminate LAN_TX"

	.comm	_OUT_OF_TXD,4,2                 ## @OUT_OF_TXD
L_.str.4:                               ## @.str.4
	.asciz	"frame_status = %x"

L_.str.5:                               ## @.str.5
	.asciz	"THiE"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hwm_tx_init                    ; -- Begin function hwm_tx_init
	.p2align	2
_hwm_tx_init:                           ; @hwm_tx_init
	.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	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_NDD_TRACE
	ldr	x8, [x20, #24]
Lloh2:
	adrp	x9, _QUEUE_A0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QUEUE_A0@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w9, w9, w19
	ldr	x8, [x8, w9, sxtw #3]
	str	x8, [x20, #8]
Lloh5:
	adrp	x8, _TX_DESCRIPTOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TX_DESCRIPTOR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	w9, #402653184
	add	w9, w9, w23, lsl #27
	and	w9, w9, #0x18000000
	orr	w8, w8, w9
	stp	w8, w23, [x20]
	stp	x22, x23, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	bl	_DB_TX
Lloh10:
	adrp	x8, _FC_SYNC_BIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FC_SYNC_BIT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _FC_LLC_PRIOR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FC_LLC_PRIOR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w22, w8
Lloh16:
	adrp	x9, _FC_ASYNC_LLC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FC_ASYNC_LLC@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.1:
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.2:
Lloh19:
	adrp	x9, lJTI0_0@PAGE
Lloh20:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh21:
	adrp	x8, _LAN_TX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LAN_TX@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_5:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_7
; %bb.6:
Lloh23:
	adrp	x8, _LAN_TX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LAN_TX@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	bic	w8, w19, w8
Lloh26:
	adrp	x9, _RING_DOWN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RING_DOWN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w19, w8, w9
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_DB_TX
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w8, w21
	b.ge	LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_mac_drv_clear_txd
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w8, w21
	b.ge	LBB0_10
; %bb.9:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	bl	_DB_TX
Lloh33:
	adrp	x8, _LAN_TX@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LAN_TX@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	bic	w8, w19, w8
Lloh36:
	adrp	x9, _OUT_OF_TXD@GOTPAGE
Lloh37:
	ldr	x9, [x9, _OUT_OF_TXD@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w19, w8, w9
LBB0_10:
	str	x19, [sp]
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #3
	bl	_DB_TX
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
Lloh41:
	adrp	x0, l_.str.5@PAGE
Lloh42:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	mov	w3, #0
	bl	_NDD_TRACE
	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
	ret
LBB0_11:
Lloh43:
	adrp	x8, _HWM_E0010@GOTPAGE
Lloh44:
	ldr	x8, [x8, _HWM_E0010@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _HWM_E0010_MSG@GOTPAGE
Lloh47:
	ldr	x8, [x8, _HWM_E0010_MSG@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_SMT_PANIC
	b	LBB0_5
LBB0_12:
Lloh49:
	adrp	x8, _LOC_TX@GOTPAGE
Lloh50:
	ldr	x8, [x8, _LOC_TX@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
Lloh51:
	adrp	x8, _LAN_TX@GOTPAGE
Lloh52:
	ldr	x8, [x8, _LAN_TX@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _LOC_TX@GOTPAGE
Lloh55:
	ldr	x9, [x9, _LOC_TX@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w8, w8, w19
	orr	w19, w8, w9
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"THiB"

	.comm	_QUEUE_A0,4,2                   ; @QUEUE_A0
	.comm	_TX_DESCRIPTOR,4,2              ; @TX_DESCRIPTOR
l_.str.1:                               ; @.str.1
	.asciz	"hwm_tx_init: fc = %x, len = %d"

	.comm	_FC_SYNC_BIT,4,2                ; @FC_SYNC_BIT
	.comm	_FC_LLC_PRIOR,4,2               ; @FC_LLC_PRIOR
	.comm	_FC_ASYNC_LLC,4,2               ; @FC_ASYNC_LLC
	.comm	_LAN_TX,4,2                     ; @LAN_TX
	.comm	_LOC_TX,4,2                     ; @LOC_TX
	.comm	_HWM_E0010,4,2                  ; @HWM_E0010
	.comm	_HWM_E0010_MSG,4,2              ; @HWM_E0010_MSG
	.comm	_RING_DOWN,4,2                  ; @RING_DOWN
l_.str.2:                               ; @.str.2
	.asciz	"Ring is down: terminate LAN_TX"

l_.str.3:                               ; @.str.3
	.asciz	"Out of TxDs, terminate LAN_TX"

	.comm	_OUT_OF_TXD,4,2                 ; @OUT_OF_TXD
l_.str.4:                               ; @.str.4
	.asciz	"frame_status = %x"

l_.str.5:                               ; @.str.5
	.asciz	"THiE"

.subsections_via_symbols
