	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_ack_packet
_prepare_ack_packet:                    ## @prepare_ack_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_to_rdev
	movl	$0, -44(%rbp)
	movl	%ebx, %r14d
	negl	%r14d
	andl	$3, %r14d
	movq	_rxe_opcode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r12d, %rdx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leal	(%r14,%rbx), %r12d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	addl	(%rcx,%rdx,8), %r12d
	movq	_RXE_ICRC_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r12d
	movq	%r15, %rbx
	leaq	12(%r15), %rsi
	movq	%rax, %rdi
	movl	%r12d, %edx
	movq	%r13, %rcx
	callq	_rxe_init_packet
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	movq	%rbx, 32(%r13)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, (%r13)
	movq	_rxe_opcode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%rbx,8), %eax
	movl	%eax, 4(%r13)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movq	%rax, 16(%r13)
	movl	%r12d, 8(%r13)
	movl	24(%r13), %edi
	movl	24(%rcx), %esi
	movq	_RXE_BTH_BYTES@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	16(%rcx), %rdx
	callq	_memcpy
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_bth_set_opcode
	movl	8(%r15), %esi
	movq	%r13, %rdi
	callq	_bth_set_qpn
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_bth_set_pad
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_bth_set_se
	movq	%r13, %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_bth_set_psn
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_bth_set_ack
	movl	%ebx, 12(%r13)
	movl	4(%r13), %eax
	movq	_RXE_AETH_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	%r15, %r14
	je	LBB0_3
## %bb.2:
	movl	16(%rbp), %esi
	movq	%r13, %rdi
	callq	_aeth_set_syn
	movl	4(%r14), %esi
	movq	%r13, %rdi
	callq	_aeth_set_msn
	movl	4(%r13), %eax
LBB0_3:
	movq	_RXE_ATMACK_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_atmack_set_orig
LBB0_5:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_rxe_prepare
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_kfree_skb
LBB0_7:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	24(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	-44(%rbp), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_11
LBB0_10:
	movq	%r13, %rdi
	callq	_payload_addr
	movslq	-56(%rbp), %rcx                 ## 4-byte Folded Reload
	leaq	(%rax,%rcx,4), %r14
	movq	%r13, %rdi
	callq	_bth_pad
	cltq
	movl	-44(%rbp), %ecx
	notl	%ecx
	movl	%ecx, (%r14,%rax,4)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_rxe_opcode,8,3                 ## @rxe_opcode
	.comm	_RXE_ICRC_SIZE,4,2              ## @RXE_ICRC_SIZE
	.comm	_RXE_BTH_BYTES,8,3              ## @RXE_BTH_BYTES
	.comm	_RXE_AETH_MASK,4,2              ## @RXE_AETH_MASK
	.comm	_RXE_ATMACK_MASK,4,2            ## @RXE_ATMACK_MASK
	.no_dead_strip	_prepare_ack_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_ack_packet
_prepare_ack_packet:                    ; @prepare_ack_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x7, [sp]                        ; 8-byte Folded Spill
	str	w6, [sp, #8]                    ; 4-byte Folded Spill
	mov	x25, x5
	mov	x20, x4
	mov	x26, x3
	mov	x19, x2
	mov	x28, x1
	mov	x23, x0
	ldr	w0, [x0, #16]
	bl	_to_rdev
	str	wzr, [sp, #12]
	neg	w8, w20
Lloh0:
	adrp	x24, _rxe_opcode@GOTPAGE
Lloh1:
	ldr	x24, [x24, _rxe_opcode@GOTPAGEOFF]
	ldr	x9, [x24]
	sbfiz	x10, x26, #3, #32
	ldr	w9, [x9, x10]
Lloh2:
	adrp	x10, _RXE_ICRC_SIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RXE_ICRC_SIZE@GOTPAGEOFF]
	and	w27, w8, #0x3
Lloh4:
	ldr	w8, [x10]
	add	w10, w27, w20
	add	w9, w10, w9
	add	w21, w9, w8
	add	x1, x23, #12
	mov	x2, x21
	mov	x3, x19
	bl	_rxe_init_packet
	mov	x22, x0
	cbz	x0, LBB0_10
; %bb.1:
	sxtw	x8, w26
	str	x23, [x19, #32]
	ldr	x9, [x24]
	add	x8, x9, x8, lsl #3
	ldr	w8, [x8, #4]
	stp	w26, w8, [x19]
	ldr	x8, [x28, #16]
	str	x8, [x19, #16]
	str	w21, [x19, #8]
	ldr	w0, [x19, #24]
	ldr	w1, [x28, #24]
	ldr	x8, [x28, #16]
Lloh5:
	adrp	x9, _RXE_BTH_BYTES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RXE_BTH_BYTES@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x2, x9, x8
	bl	_memcpy
	mov	x0, x19
	mov	x1, x26
	bl	_bth_set_opcode
	ldr	w1, [x23, #8]
	mov	x0, x19
	bl	_bth_set_qpn
	mov	x0, x19
	mov	x1, x27
	bl	_bth_set_pad
	mov	x0, x19
	mov	w1, #0
	bl	_bth_set_se
	mov	x0, x19
	mov	x1, x25
	bl	_bth_set_psn
	mov	x0, x19
	mov	w1, #0
	bl	_bth_set_ack
	str	w25, [x19, #12]
	ldr	w8, [x19, #4]
Lloh8:
	adrp	x9, _RXE_AETH_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RXE_AETH_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
	bl	_aeth_set_syn
	ldr	w1, [x23, #4]
	mov	x0, x19
	bl	_aeth_set_msn
	ldr	w8, [x19, #4]
LBB0_3:
Lloh11:
	adrp	x9, _RXE_ATMACK_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RXE_ATMACK_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_atmack_set_orig
LBB0_5:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x22
	bl	_rxe_prepare
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_kfree_skb
	mov	x22, #0
	b	LBB0_10
LBB0_7:
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cbz	x9, LBB0_9
; %bb.8:
	ldr	w8, [sp, #12]
	str	w8, [x9]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_payload_addr
	add	x20, x0, w20, sxtw #2
	mov	x0, x19
	bl	_bth_pad
	ldr	w8, [sp, #12]
	mvn	w8, w8
	str	w8, [x20, w0, sxtw #2]
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_rxe_opcode,8,3                 ; @rxe_opcode
	.comm	_RXE_ICRC_SIZE,4,2              ; @RXE_ICRC_SIZE
	.comm	_RXE_BTH_BYTES,8,3              ; @RXE_BTH_BYTES
	.comm	_RXE_AETH_MASK,4,2              ; @RXE_AETH_MASK
	.comm	_RXE_ATMACK_MASK,4,2            ; @RXE_ATMACK_MASK
	.no_dead_strip	_prepare_ack_packet
.subsections_via_symbols
