	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_svc_intf_activate           ## -- Begin function gb_svc_intf_activate
	.p2align	4, 0x90
_gb_svc_intf_activate:                  ## @gb_svc_intf_activate
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	%esi, -32(%rbp)
	movl	4(%rdi), %edi
	movq	_GB_SVC_TYPE_INTF_ACTIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SVC_INTF_ACTIVATE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-32(%rbp), %rdx
	leaq	-48(%rbp), %r8
	movl	$4, %ecx
	movl	$16, %r9d
	callq	_gb_operation_sync_timeout
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	-48(%rbp), %rcx
	movq	_GB_SVC_OP_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_2
## %bb.3:
	movl	-40(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_SVC_TYPE_INTF_ACTIVATE,4,2  ## @GB_SVC_TYPE_INTF_ACTIVATE
	.comm	_SVC_INTF_ACTIVATE_TIMEOUT,4,2  ## @SVC_INTF_ACTIVATE_TIMEOUT
	.comm	_GB_SVC_OP_SUCCESS,8,3          ## @GB_SVC_OP_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to activate interface %u: %u\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_svc_intf_activate           ; -- Begin function gb_svc_intf_activate
	.p2align	2
_gb_svc_intf_activate:                  ; @gb_svc_intf_activate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	w1, [sp, #24]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _GB_SVC_TYPE_INTF_ACTIVATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GB_SVC_TYPE_INTF_ACTIVATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SVC_INTF_ACTIVATE_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVC_INTF_ACTIVATE_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	add	x2, sp, #24
	add	x4, sp, #8
	mov	w3, #4
	mov	w5, #16
	bl	_gb_operation_sync_timeout
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x3, [sp, #8]
Lloh6:
	adrp	x8, _GB_SVC_OP_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GB_SVC_OP_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x3, x8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	w8, [sp, #16]
	str	w8, [x21]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_SVC_TYPE_INTF_ACTIVATE,4,2  ; @GB_SVC_TYPE_INTF_ACTIVATE
	.comm	_SVC_INTF_ACTIVATE_TIMEOUT,4,2  ; @SVC_INTF_ACTIVATE_TIMEOUT
	.comm	_GB_SVC_OP_SUCCESS,8,3          ; @GB_SVC_OP_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to activate interface %u: %u\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
.subsections_via_symbols
