	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gb_svc_version_request
_gb_svc_version_request:                ## @gb_svc_version_request
	.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
	movq	16(%rdi), %rdi
	callq	_gb_connection_get_data
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movl	(%rax), %edx
	cmpl	$15, %edx
	ja	LBB0_2
## %bb.1:
	addq	$12, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$16, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	movq	8(%rax), %rax
	movq	(%rax), %rdx
	movq	_GB_SVC_VERSION_MAJOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_4
## %bb.3:
	addq	$12, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	%rdx, (%rbx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_gb_operation_response_alloc
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movl	8(%rbx), %ecx
	movl	%ecx, 8(%rax)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"short version request (%zu < %zu)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GB_SVC_VERSION_MAJOR,8,3       ## @GB_SVC_VERSION_MAJOR
L_.str.1:                               ## @.str.1
	.asciz	"unsupported major version (%u > %u)\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_gb_svc_version_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gb_svc_version_request
_gb_svc_version_request:                ; @gb_svc_version_request
	.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	x20, x0
	ldr	x0, [x0, #16]
	bl	_gb_connection_get_data
	mov	x19, x0
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
	cmp	w2, #15
	b.hi	LBB0_2
; %bb.1:
	add	x0, x19, #12
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #16
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x8, #8]
	ldr	x2, [x8]
Lloh4:
	adrp	x9, _GB_SVC_VERSION_MAJOR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GB_SVC_VERSION_MAJOR@GOTPAGEOFF]
Lloh6:
	ldr	x3, [x9]
	cmp	x2, x3
	b.le	LBB0_4
; %bb.3:
	add	x0, x19, #12
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh9:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	str	x2, [x19]
	ldr	w8, [x8, #8]
	str	w8, [x19, #8]
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #16
	bl	_gb_operation_response_alloc
	cbz	w0, LBB0_6
; %bb.5:
	mov	w0, #0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x9, [x8]
	ldr	w9, [x19, #8]
	str	w9, [x8, #8]
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"short version request (%zu < %zu)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GB_SVC_VERSION_MAJOR,8,3       ; @GB_SVC_VERSION_MAJOR
l_.str.1:                               ; @.str.1
	.asciz	"unsupported major version (%u > %u)\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_gb_svc_version_request
.subsections_via_symbols
