	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_interface_activate          ## -- Begin function gb_interface_activate
	.p2align	4, 0x90
_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	andl	$-2, %eax
	leaq	-20(%rbp), %rsi
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	callq	__gb_interface_activate_es3_hack
	jmp	LBB0_3
LBB0_2:
	callq	__gb_interface_activate
LBB0_3:
	movl	%eax, %r14d
	movl	(%rbx), %eax
	movl	-20(%rbp), %ecx
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.8:
	movl	%ecx, (%rbx)
	jmp	LBB0_9
LBB0_4:
	cmpl	%eax, %ecx
	je	LBB0_9
## %bb.5:
	leaq	4(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_gb_interface_deactivate
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to detect interface type\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_interface_activate          ; -- Begin function gb_interface_activate
	.p2align	2
_gb_interface_activate:                 ; @gb_interface_activate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w8, [x0]
	and	w8, w8, #0xfffffffe
	add	x1, sp, #12
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
	bl	__gb_interface_activate_es3_hack
	b	LBB0_3
LBB0_2:
	bl	__gb_interface_activate
LBB0_3:
	mov	x20, x0
	ldr	w9, [x19]
	ldr	w8, [sp, #12]
	cmp	w9, #128
	b.ne	LBB0_5
; %bb.4:
	str	w8, [x19]
	b	LBB0_9
LBB0_5:
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.6:
	add	x0, x19, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	cbnz	w20, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_gb_interface_deactivate
LBB0_8:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to detect interface type\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
