	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gb_interface_route_create
_gb_interface_route_create:             ## @gb_interface_route_create
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movl	(%rdi), %r13d
	movq	_GB_SVC_DEVICE_ID_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GB_SVC_DEVICE_ID_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	incq	%rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_ida_simple_get
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_gb_svc_intf_device_id
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	addq	$8, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_1:
	addq	$8, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_4:
	movl	4(%r14), %esi
	movq	_GB_SVC_DEVICE_ID_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	callq	_gb_svc_route_create
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %r12d
	addq	$8, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ida_simple_remove
	movl	%r12d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r15d, 4(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_SVC_DEVICE_ID_MIN,4,2       ## @GB_SVC_DEVICE_ID_MIN
	.comm	_GB_SVC_DEVICE_ID_MAX,8,3       ## @GB_SVC_DEVICE_ID_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate device id: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set device id %u: %d\n"

	.comm	_GB_SVC_DEVICE_ID_AP,4,2        ## @GB_SVC_DEVICE_ID_AP
L_.str.2:                               ## @.str.2
	.asciz	"failed to create route: %d\n"

	.no_dead_strip	_gb_interface_route_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gb_interface_route_create
_gb_interface_route_create:             ; @gb_interface_route_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x8, [x0, #16]
	ldr	x20, [x8]
	ldr	w23, [x0]
Lloh0:
	adrp	x8, _GB_SVC_DEVICE_ID_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GB_SVC_DEVICE_ID_MIN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GB_SVC_DEVICE_ID_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GB_SVC_DEVICE_ID_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	x8, [x9]
	add	x2, x8, #1
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_ida_simple_get
	mov	x19, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_gb_svc_intf_device_id
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	add	x0, x21, #8
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	b	LBB0_6
LBB0_3:
	add	x0, x21, #8
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	b	LBB0_7
LBB0_4:
	ldr	w1, [x20, #4]
Lloh13:
	adrp	x8, _GB_SVC_DEVICE_ID_AP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GB_SVC_DEVICE_ID_AP@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x23
	mov	x4, x19
	bl	_gb_svc_route_create
	cbz	w0, LBB0_8
; %bb.5:
	mov	x22, x0
	add	x0, x21, #8
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
LBB0_6:
	bl	_dev_err
	mov	x0, x20
	mov	x1, x19
	bl	_ida_simple_remove
	mov	x19, x22
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	str	w19, [x21, #4]
	mov	w19, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_SVC_DEVICE_ID_MIN,4,2       ; @GB_SVC_DEVICE_ID_MIN
	.comm	_GB_SVC_DEVICE_ID_MAX,8,3       ; @GB_SVC_DEVICE_ID_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate device id: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set device id %u: %d\n"

	.comm	_GB_SVC_DEVICE_ID_AP,4,2        ; @GB_SVC_DEVICE_ID_AP
l_.str.2:                               ; @.str.2
	.asciz	"failed to create route: %d\n"

	.no_dead_strip	_gb_interface_route_create
.subsections_via_symbols
