	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gb_operation_response_send
_gb_operation_response_send:            ## @gb_operation_response_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	cmpq	$0, (%rdi)
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_gb_operation_is_unidirectional
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_gb_operation_response_alloc
	testl	%eax, %eax
	je	LBB0_12
LBB0_3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_gb_operation_result_set
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	callq	_gb_operation_is_unidirectional
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_gb_operation_get
	movq	%rbx, %rdi
	callq	_gb_operation_get_active
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	%r15d, %edi
	callq	_gb_operation_errno_map
	movq	(%rbx), %rdi
	movq	(%rdi), %rcx
	movl	%eax, (%rcx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gb_message_send
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_gb_operation_put_active
LBB0_8:
	movq	%rbx, %rdi
	callq	_gb_operation_put
	movl	%r12d, %r14d
	jmp	LBB0_11
LBB0_9:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_10:
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request result already set\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_gb_operation_response_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gb_operation_response_send
_gb_operation_response_send:            ; @gb_operation_response_send
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	x8, x21, [x0]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_gb_operation_is_unidirectional
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_gb_operation_response_alloc
	cbz	w0, LBB0_13
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_gb_operation_result_set
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_gb_operation_is_unidirectional
	cbz	x0, LBB0_8
; %bb.5:
	mov	w21, #0
	b	LBB0_12
LBB0_6:
	ldr	x0, [x21]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_8:
	mov	x0, x19
	bl	_gb_operation_get
	mov	x0, x19
	bl	_gb_operation_get_active
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_gb_operation_errno_map
	ldr	x8, [x19]
	ldr	x9, [x8]
	str	w0, [x9]
Lloh7:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_gb_message_send
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_gb_operation_put_active
LBB0_11:
	mov	x0, x19
	bl	_gb_operation_put
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request result already set\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_gb_operation_response_send
.subsections_via_symbols
