	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trans_rule_ctrl_to_hw
_trans_rule_ctrl_to_hw:                 ## @trans_rule_ctrl_to_hw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_MLX4_NET_TRANS_Q_LIFO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	xorl	%eax, %eax
	cmpq	$0, 40(%rdi)
	setne	%al
	leal	(%rdx,%rax,4), %eax
	xorl	%ecx, %ecx
	cmpq	$0, 32(%rdi)
	setne	%cl
	leal	(%rax,%rcx,8), %eax
	movl	%eax, (%rsi)
	movq	___promisc_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rdi), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 16(%rsi)
	movl	24(%rdi), %edi
	callq	_cpu_to_be16
	movl	%eax, 12(%r14)
	movl	20(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	16(%rbx), %edi
	callq	_cpu_to_be32
	movl	%eax, 4(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_NET_TRANS_Q_LIFO,8,3      ## @MLX4_NET_TRANS_Q_LIFO
	.comm	___promisc_mode,8,3             ## @__promisc_mode
	.no_dead_strip	_trans_rule_ctrl_to_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trans_rule_ctrl_to_hw
_trans_rule_ctrl_to_hw:                 ; @trans_rule_ctrl_to_hw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MLX4_NET_TRANS_Q_LIFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_NET_TRANS_Q_LIFO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x10, [x0]
	cmp	x9, x8
	cset	w8, eq
	ldp	x11, x9, [x0, #32]
	cmp	x9, #0
	cset	w9, ne
	bfi	w8, w9, #2, #1
	cmp	x11, #0
	cset	w9, ne
	bfi	w8, w9, #3, #1
Lloh3:
	adrp	x9, ___promisc_mode@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___promisc_mode@GOTPAGEOFF]
	str	w8, [x1]
Lloh5:
	ldr	x8, [x9]
	ldr	w8, [x8, x10, lsl #2]
	str	w8, [x1, #16]
	ldr	w0, [x0, #24]
	bl	_cpu_to_be16
	ldp	w8, w9, [x20, #16]
	stp	w9, w0, [x19, #8]
	mov	x0, x8
	bl	_cpu_to_be32
	str	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_NET_TRANS_Q_LIFO,8,3      ; @MLX4_NET_TRANS_Q_LIFO
	.comm	___promisc_mode,8,3             ; @__promisc_mode
	.no_dead_strip	_trans_rule_ctrl_to_hw
.subsections_via_symbols
