	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdlcdrv_arbitrate              ## -- Begin function hdlcdrv_arbitrate
	.p2align	4, 0x90
_hdlcdrv_arbitrate:                     ## @hdlcdrv_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
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_HDLCDRV_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	cmpq	$0, 40(%rbx)
	je	LBB0_3
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, 56(%rbx)
	je	LBB0_9
## %bb.4:
	movq	%rdi, %r14
	cmpq	$0, 24(%rbx)
	je	LBB0_5
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_start_tx                       ## TAILCALL
LBB0_5:
	cmpq	$0, 48(%rbx)
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	movq	%rax, 32(%rbx)
	jmp	LBB0_9
LBB0_7:
	movq	32(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, 32(%rbx)
	cmpq	$1, %rax
	jg	LBB0_9
## %bb.8:
	movq	8(%rbx), %rax
	movq	%rax, 32(%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	16(%rbx), %eax
	jg	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_HDLCDRV_MAGIC,8,3              ## @HDLCDRV_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdlcdrv_arbitrate              ; -- Begin function hdlcdrv_arbitrate
	.p2align	2
_hdlcdrv_arbitrate:                     ; @hdlcdrv_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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _HDLCDRV_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDLCDRV_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, 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	w8, [x19, #56]
	cbz	w8, LBB0_3
; %bb.5:
	mov	x20, x0
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
LBB0_6:
	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	_start_tx
LBB0_7:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	str	x8, [x19, #32]
	b	LBB0_3
LBB0_9:
	ldr	x8, [x19, #32]
	subs	x8, x8, #1
	str	x8, [x19, #32]
	b.gt	LBB0_3
; %bb.10:
	ldr	x8, [x19, #8]
	str	x8, [x19, #32]
	bl	_prandom_u32
	negs	w8, w0
	and	w8, w8, #0xff
	and	w9, w0, #0xff
	csneg	w8, w9, w8, mi
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.gt	LBB0_3
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDLCDRV_MAGIC,8,3              ; @HDLCDRV_MAGIC
.subsections_via_symbols
