	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_do_start
_gem_do_start:                          ## @gem_do_start
	.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	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_gem_get_cell
	movq	(%r15), %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	%r15, %rdi
	callq	_gem_put_cell
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	(%r15), %rdi
	callq	_pci_set_master
	movq	%r15, %rdi
	callq	_gem_reinit_chip
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_gem_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	%r15, %rdi
	callq	_gem_reset
	movq	%r15, %rdi
	callq	_gem_clean_rings
	movq	%r15, %rdi
	callq	_gem_put_cell
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_netif_device_attach
	movq	%r15, %rdi
	callq	_gem_netif_start
	movq	%r15, %rdi
	callq	_gem_init_phy
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable chip on PCI bus !\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_gem_interrupt,4,2              ## @gem_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"failed to request irq !\n"

	.no_dead_strip	_gem_do_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_do_start
_gem_do_start:                          ; @gem_do_start
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_gem_get_cell
	ldr	x0, [x19]
	bl	_pci_enable_device
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	mov	x0, x19
	bl	_gem_put_cell
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_2:
	ldr	x0, [x19]
	bl	_pci_set_master
	mov	x0, x19
	bl	_gem_reinit_chip
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _gem_interrupt@GOTPAGE
Lloh6:
	ldr	x9, [x9, _gem_interrupt@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh7:
	ldr	w1, [x9]
Lloh8:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x4, x20
	bl	_request_irq
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	mov	x0, x19
	bl	_gem_reset
	mov	x0, x19
	bl	_gem_clean_rings
	mov	x0, x19
	bl	_gem_put_cell
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_netif_device_attach
	mov	x0, x19
	bl	_gem_netif_start
	mov	x0, x19
	bl	_gem_init_phy
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable chip on PCI bus !\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_gem_interrupt,4,2              ; @gem_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"failed to request irq !\n"

	.no_dead_strip	_gem_do_start
.subsections_via_symbols
