	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _gb_interface_activate
__gb_interface_activate:                ## @_gb_interface_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GB_INTERFACE_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	cmpq	$0, 16(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_3
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rsi, %r15
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_gb_interface_vsys_set
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_gb_interface_refclk_set
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_gb_interface_unipro_set
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_gb_interface_activate_operation
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movl	%eax, %ebx
	movl	(%r15), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_8
	jmp	LBB0_9
LBB0_12:
	movq	%r14, %rdi
	callq	_gb_interface_read_dme
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.13:
	movq	%r14, %rdi
	callq	_gb_interface_route_create
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_14
LBB0_8:
	movq	%r14, %rdi
	callq	_gb_interface_hibernate_link
LBB0_9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gb_interface_unipro_set
LBB0_10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gb_interface_refclk_set
LBB0_11:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gb_interface_vsys_set
	jmp	LBB0_15
LBB0_14:
	movl	$1, (%r14)
	movq	%r14, %rdi
	callq	_trace_gb_interface_activate
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_INTERFACE_TYPE_UNKNOWN,4,2  ## @GB_INTERFACE_TYPE_UNKNOWN
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	__gb_interface_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _gb_interface_activate
__gb_interface_activate:                ; @_gb_interface_activate
	.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
Lloh0:
	adrp	x8, _GB_INTERFACE_TYPE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GB_INTERFACE_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	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_4:
	mov	x21, x1
	mov	x0, x19
	mov	w1, #1
	bl	_gb_interface_vsys_set
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	bl	_gb_interface_refclk_set
	mov	x20, x0
	cbnz	w0, LBB0_14
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	bl	_gb_interface_unipro_set
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_gb_interface_activate_operation
	cbz	w0, LBB0_9
; %bb.8:
	mov	x20, x0
	ldr	w8, [x21]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_11
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_gb_interface_read_dme
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_gb_interface_route_create
	mov	x20, x0
	cbz	w0, LBB0_15
LBB0_11:
	mov	x0, x19
	bl	_gb_interface_hibernate_link
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	bl	_gb_interface_unipro_set
LBB0_13:
	mov	x0, x19
	mov	w1, #0
	bl	_gb_interface_refclk_set
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	bl	_gb_interface_vsys_set
	b	LBB0_3
LBB0_15:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_trace_gb_interface_activate
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_INTERFACE_TYPE_UNKNOWN,4,2  ; @GB_INTERFACE_TYPE_UNKNOWN
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	__gb_interface_activate
.subsections_via_symbols
