	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yam_arbitrate
_yam_arbitrate:                         ## @yam_arbitrate
	.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	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_YAM_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	8(%rbx), %rax
	movq	_TX_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	addq	$48, %rdi
	callq	_skb_queue_empty
	testq	%rax, %rax
	je	LBB0_3
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, 40(%rbx)
	je	LBB0_4
LBB0_9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_yam_start_tx                   ## TAILCALL
LBB0_4:
	cmpq	$0, 32(%rbx)
	je	LBB0_6
## %bb.5:
	movslq	20(%rbx), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_8
LBB0_6:
	movl	16(%rbx), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, 16(%rbx)
	cmpl	$1, %eax
	jg	LBB0_8
## %bb.7:
	movslq	20(%rbx), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	callq	_prandom_u32
                                        ## kill: def $eax killed $eax def $rax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-256, %ecx
	subl	%ecx, %eax
	cmpl	24(%rbx), %eax
	jg	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_YAM_MAGIC,8,3                  ## @YAM_MAGIC
	.comm	_TX_OFF,8,3                     ## @TX_OFF
	.no_dead_strip	_yam_arbitrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yam_arbitrate
_yam_arbitrate:                         ; @yam_arbitrate
	.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	x20, x0
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _YAM_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _YAM_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _TX_OFF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_OFF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	add	x0, x19, #48
	bl	_skb_queue_empty
	cbz	x0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_yam_start_tx
LBB0_6:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.7:
	ldrsw	x8, [x19, #20]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	str	w8, [x19, #16]
	b	LBB0_3
LBB0_8:
	ldr	w8, [x19, #16]
	subs	w8, w8, #1
	str	w8, [x19, #16]
	b.gt	LBB0_3
; %bb.9:
	ldrsw	x8, [x19, #20]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	str	w8, [x19, #16]
	bl	_prandom_u32
	negs	w8, w0
	and	w8, w8, #0xff
	and	w9, w0, #0xff
	csneg	w8, w9, w8, mi
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.gt	LBB0_3
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_YAM_MAGIC,8,3                  ; @YAM_MAGIC
	.comm	_TX_OFF,8,3                     ; @TX_OFF
	.no_dead_strip	_yam_arbitrate
.subsections_via_symbols
