	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_send_fragment
_do_send_fragment:                      ## @do_send_fragment
	.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, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_start_timing
	xorl	%edi, %edi
	cmpl	%r13d, (%r14)
	setb	%dil
	callq	_BUG_ON
	movq	_ipwireless_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_dump_data_bytes
LBB0_2:
	leaq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 40(%r14)
	movq	%r12, %rdi
	callq	_swap_packet_bitfield_to_le
	movq	8(%r14), %rax
	movq	_HW_VERSION_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_IODWR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	32(%r14), %rsi
	movzwl	%r13w, %edi
	callq	_outw
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movzwl	%ax, %edi
	callq	_cpu_to_le16
	movq	(%rbx), %rsi
	addq	32(%r14), %rsi
	movzwl	%ax, %edi
	callq	_outw
	addl	$2, %r15d
	cmpl	%r13d, %r15d
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	movzbl	(%r12,%rax), %eax
	leal	1(%r15), %ecx
	cmpl	%r13d, %ecx
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, %ecx
	movzbl	(%r12,%rcx), %ecx
	shll	$8, %ecx
	movzwl	%ax, %eax
	orl	%ecx, %eax
	jmp	LBB0_7
LBB0_9:
	movq	_HW_VERSION_2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.10:
	movq	32(%r14), %rsi
	movzwl	%r13w, %edi
	callq	_outw
	testl	%r13d, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.18:
	xorl	%r15d, %r15d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	movzwl	%ax, %edi
	callq	_cpu_to_le16
	movq	32(%r14), %rsi
	movzwl	%ax, %edi
	callq	_outw
	addl	$2, %r15d
	cmpl	%r13d, %r15d
	jae	LBB0_12
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	movzbl	(%r12,%rax), %eax
	leal	1(%r15), %ecx
	cmpl	%r13d, %ecx
	jae	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%ecx, %ecx
	movzbl	(%r12,%rcx), %ecx
	shll	$8, %ecx
	movzwl	%ax, %eax
	orl	%ecx, %eax
	jmp	LBB0_21
LBB0_8:
	movq	_DCR_TXDONE@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edi
	movq	_IODCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%r14), %rsi
	callq	_outw
	jmp	LBB0_16
LBB0_12:
	testb	$2, %r15b
	je	LBB0_13
	jmp	LBB0_15
LBB0_11:
	xorl	%r15d, %r15d
LBB0_13:
	addl	$2, %r15d
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rsi
	movl	$57005, %edi                    ## imm = 0xDEAD
	callq	_outw
	addl	$2, %ebx
	testb	$2, %r15b
	movl	%ebx, %r15d
	je	LBB0_14
LBB0_15:
	movq	_MEMRX_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r14), %rsi
	callq	_writew
LBB0_16:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r13d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_end_write_timing               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ipwireless_debug,8,3           ## @ipwireless_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send"

	.comm	_HW_VERSION_1,8,3               ## @HW_VERSION_1
	.comm	_IODWR,8,3                      ## @IODWR
	.comm	_DCR_TXDONE,2,1                 ## @DCR_TXDONE
	.comm	_IODCR,8,3                      ## @IODCR
	.comm	_HW_VERSION_2,8,3               ## @HW_VERSION_2
	.comm	_MEMRX_RX,4,2                   ## @MEMRX_RX
	.no_dead_strip	_do_send_fragment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_send_fragment
_do_send_fragment:                      ; @do_send_fragment
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x22, x1
	mov	x20, x0
	bl	_start_timing
	ldr	w8, [x20]
	cmp	w8, w19
	cset	w0, lo
	bl	_BUG_ON
Lloh0:
	adrp	x8, _ipwireless_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ipwireless_debug@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	bl	_dump_data_bytes
LBB0_2:
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	str	xzr, [x20, #40]
	mov	x0, x22
	bl	_swap_packet_bitfield_to_le
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _HW_VERSION_1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HW_VERSION_1@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x20, #32]
Lloh8:
	adrp	x23, _IODWR@GOTPAGE
Lloh9:
	ldr	x23, [x23, _IODWR@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	and	w0, w19, #0xffff
	bl	_outw
	cbz	w19, LBB0_13
; %bb.4:
	mov	w24, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	and	w0, w8, #0xffff
	bl	_cpu_to_le16
	ldr	x8, [x20, #32]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_outw
	add	w24, w24, #2
	cmp	w24, w19
	b.hs	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, w24, uxtw]
	add	w9, w24, #1
	cmp	w9, w19
	b.hs	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w9, [x22, w9, uxtw]
	bfi	w8, w9, #8, #24
	b	LBB0_5
LBB0_8:
Lloh10:
	adrp	x9, _HW_VERSION_2@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HW_VERSION_2@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.9:
	ldr	x1, [x20, #32]
	and	w0, w19, #0xffff
	bl	_outw
	mov	w23, #0
	cbnz	w19, LBB0_11
	b	LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	and	w0, w8, #0xffff
	bl	_cpu_to_le16
	ldr	x1, [x20, #32]
	bl	_outw
	add	w23, w23, #2
	cmp	w23, w19
	b.hs	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, w23, uxtw]
	add	w9, w23, #1
	cmp	w9, w19
	b.hs	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w9, [x22, w9, uxtw]
	bfi	w8, w9, #8, #24
	b	LBB0_10
LBB0_13:
Lloh13:
	adrp	x8, _DCR_TXDONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DCR_TXDONE@GOTPAGEOFF]
	ldrh	w0, [x8]
	ldr	x8, [x20, #32]
Lloh15:
	adrp	x9, _IODCR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IODCR@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outw
	b	LBB0_18
LBB0_14:
	tbnz	w23, #1, LBB0_17
LBB0_15:
	add	w8, w23, #2
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	ldr	x1, [x20, #32]
	mov	w0, #57005
	bl	_outw
	add	w8, w22, #2
	tbz	w22, #1, LBB0_16
LBB0_17:
Lloh18:
	adrp	x8, _MEMRX_RX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MEMRX_RX@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x1, [x20, #24]
	bl	_writew
LBB0_18:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_end_write_timing
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ipwireless_debug,8,3           ; @ipwireless_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send"

	.comm	_HW_VERSION_1,8,3               ; @HW_VERSION_1
	.comm	_IODWR,8,3                      ; @IODWR
	.comm	_DCR_TXDONE,2,1                 ; @DCR_TXDONE
	.comm	_IODCR,8,3                      ; @IODCR
	.comm	_HW_VERSION_2,8,3               ; @HW_VERSION_2
	.comm	_MEMRX_RX,4,2                   ; @MEMRX_RX
	.no_dead_strip	_do_send_fragment
.subsections_via_symbols
