	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_operation_unidirectional_timeout ## -- Begin function gb_operation_unidirectional_timeout
	.p2align	4, 0x90
_gb_operation_unidirectional_timeout:   ## @gb_operation_unidirectional_timeout
	.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, %r12d
	movq	%rdx, %r14
	movq	%rdi, %r15
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	_GB_OPERATION_FLAG_UNIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_gb_operation_create_flags
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r13
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.5:
	movq	(%r13), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
LBB0_6:
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_gb_operation_request_send_sync_timeout
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	8(%r15), %rdi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_dev_err
LBB0_8:
	movq	%r13, %rdi
	callq	_gb_operation_put
	jmp	LBB0_11
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GB_OPERATION_FLAG_UNIDIRECTIONAL,4,2 ## @GB_OPERATION_FLAG_UNIDIRECTIONAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unidirectional operation of type 0x%02x failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_operation_unidirectional_timeout ; -- Begin function gb_operation_unidirectional_timeout
	.p2align	2
_gb_operation_unidirectional_timeout:   ; @gb_operation_unidirectional_timeout
	.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, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	cbnz	x2, LBB0_3
; %bb.1:
	cbz	w23, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh2:
	adrp	x8, _GB_OPERATION_FLAG_UNIDIRECTIONAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GB_OPERATION_FLAG_UNIDIRECTIONAL@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	w3, #0
	bl	_gb_operation_create_flags
	cbz	x0, LBB0_9
; %bb.4:
	mov	x22, x0
	cbz	w23, LBB0_6
; %bb.5:
	ldr	x8, [x22]
	ldr	w0, [x8]
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	bl	_gb_operation_request_send_sync_timeout
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x20, #8]
	ldr	w2, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	mov	x4, x21
	bl	_dev_err
LBB0_8:
	mov	x0, x22
	bl	_gb_operation_put
	b	LBB0_11
LBB0_9:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GB_OPERATION_FLAG_UNIDIRECTIONAL,4,2 ; @GB_OPERATION_FLAG_UNIDIRECTIONAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unidirectional operation of type 0x%02x failed: %d\n"

.subsections_via_symbols
