	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gs_alloc_tx_context
_gs_alloc_tx_context:                   ## @gs_alloc_tx_context
	.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	_spin_lock_irqsave
	movq	_GS_MAX_TX_URBS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	8(%r14), %rcx
	leaq	(,%rax,4), %rsi
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rcx,%rbx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	incl	%edx
	cmpq	%rbx, %rsi
	jne	LBB0_2
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movl	%edx, (%rcx,%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	addq	8(%r14), %rbx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GS_MAX_TX_URBS,4,2             ## @GS_MAX_TX_URBS
	.no_dead_strip	_gs_alloc_tx_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gs_alloc_tx_context
_gs_alloc_tx_context:                   ; @gs_alloc_tx_context
	.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, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _GS_MAX_TX_URBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GS_MAX_TX_URBS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w9, #0
	mov	x20, #0
	ldr	x10, [x19, #8]
	lsl	x11, x8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x20]
	cmp	w12, w8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #4
	add	w9, w9, #1
	cmp	x11, x20
	b.ne	LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, #0
	b	LBB0_6
LBB0_5:
	str	w9, [x10, x20]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #8]
	add	x0, x8, x20
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GS_MAX_TX_URBS,4,2             ; @GS_MAX_TX_URBS
	.no_dead_strip	_gs_alloc_tx_context
.subsections_via_symbols
