	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_operation_request_send      ## -- Begin function gb_operation_request_send
	.p2align	4, 0x90
_gb_operation_request_send:             ## @gb_operation_request_send
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	32(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_gb_connection_is_offloaded
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	movq	%r13, 24(%r12)
	movq	%r12, %rdi
	callq	_gb_operation_is_unidirectional
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	callq	_atomic_inc_return
	movq	_U16_MAX@GOTPCREL(%rip), %rcx
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%edx, %edi
	incl	%edi
LBB0_8:
	movq	%rdi, 16(%r12)
	movq	8(%r12), %rax
	movq	(%rax), %rbx
	callq	_cpu_to_le16
	movl	%eax, (%rbx)
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_gb_operation_result_set
	movq	%r12, %rdi
	callq	_gb_operation_get
	movq	%r12, %rdi
	callq	_gb_operation_get_active
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	8(%r12), %rdi
	movl	%r15d, %esi
	callq	_gb_message_send
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_gb_operation_put_active
LBB0_13:
	movq	%r12, %rdi
	callq	_gb_operation_put
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.11:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%r14d, %edi
	callq	_msecs_to_jiffies
	addq	%r15, %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_add_timer
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_U16_MAX,4,2                    ## @U16_MAX
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_jiffies,8,3                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_operation_request_send      ; -- Begin function gb_operation_request_send
	.p2align	2
_gb_operation_request_send:             ; @gb_operation_request_send
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x22, [x0, #32]
	mov	x0, x22
	bl	_gb_connection_is_offloaded
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_3:
	cbz	x23, LBB0_6
; %bb.4:
	str	x23, [x19, #24]
	mov	x0, x19
	bl	_gb_operation_is_unidirectional
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, #0
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	mov	x0, x22
	bl	_atomic_inc_return
Lloh4:
	adrp	x8, _U16_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _U16_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	udiv	w9, w0, w8
	msub	w8, w9, w8, w0
	add	w0, w8, #1
LBB0_8:
	str	x0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	x22, [x8]
	bl	_cpu_to_le16
	str	w0, [x22]
Lloh7:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x19
	bl	_gb_operation_result_set
	mov	x0, x19
	bl	_gb_operation_get
	mov	x0, x19
	bl	_gb_operation_get_active
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_gb_message_send
	cbz	w0, LBB0_13
; %bb.10:
	mov	x22, x0
	mov	x0, x19
	bl	_gb_operation_put_active
LBB0_11:
	mov	x0, x19
	bl	_gb_operation_put
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	cbz	w20, LBB0_15
; %bb.14:
Lloh10:
	adrp	x8, _jiffies@GOTPAGE
Lloh11:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x8]
	mov	x0, x20
	bl	_msecs_to_jiffies
	add	x8, x0, x21
	str	x8, [x19]
	mov	x0, x19
	bl	_add_timer
LBB0_15:
	mov	w22, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_U16_MAX,4,2                    ; @U16_MAX
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_jiffies,8,3                    ; @jiffies
.subsections_via_symbols
