	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gbe_attach
_gbe_attach:                            ## @gbe_attach
	.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, %r15
	movl	(%rdi), %edi
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	%r12, 32(%rax)
	movl	(%r15), %edi
	movl	%edi, 24(%rax)
	movq	%r15, 16(%rax)
	movl	(%rbx), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	movq	%rax, %rsi
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_init_slave
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	(%r14), %rsi
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:
	movl	(%r15), %edi
	callq	_devm_kfree
LBB0_12:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_devm_kfree
	jmp	LBB0_13
LBB0_8:
	movl	8(%r15), %eax
	movl	%eax, 12(%r14)
	movq	_keystone_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	movq	%r14, %rdi
	addq	$8, %rdi
	addq	$4, %r15
	movq	%r15, %rsi
	callq	_list_add_tail
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interface node not available\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_keystone_ethtool_ops,4,2       ## @keystone_ethtool_ops
	.no_dead_strip	_gbe_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gbe_attach
_gbe_attach:                            ; @gbe_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	w0, [x0]
	cbz	x2, LBB0_5
; %bb.1:
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	str	x22, [x0, #32]
	ldr	w0, [x19]
	str	w0, [x20, #24]
	str	x19, [x20, #16]
	ldr	w2, [x24]
	mov	w1, #40
	bl	_devm_kzalloc
	mov	x1, x0
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x19
	mov	x2, x23
	bl	_init_slave
	cbz	x0, LBB0_12
; %bb.4:
	ldr	x1, [x20]
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
	cbz	x1, LBB0_11
; %bb.10:
	ldr	w0, [x19]
	bl	_devm_kfree
LBB0_11:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_devm_kfree
	b	LBB0_13
LBB0_12:
	ldr	w8, [x19, #8]
	str	w8, [x20, #12]
Lloh12:
	adrp	x8, _keystone_ethtool_ops@GOTPAGE
Lloh13:
	ldr	x8, [x8, _keystone_ethtool_ops@GOTPAGEOFF]
	str	x8, [x22]
	add	x0, x20, #8
	add	x1, x19, #4
	bl	_list_add_tail
	mov	w22, #0
	str	x20, [x21]
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interface node not available\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_keystone_ethtool_ops,4,2       ; @keystone_ethtool_ops
	.no_dead_strip	_gbe_attach
.subsections_via_symbols
