	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ngene_probe                    ## -- Begin function ngene_probe
	.p2align	4, 0x90
_ngene_probe:                           ## @ngene_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_pci_enable_device
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movl	$24, %edi
	callq	_vzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 16(%rax)
	movq	(%rbx), %rax
	movq	%rax, 8(%r15)
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	%r15, %rdi
	callq	_ngene_get_buffers
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	%r15, %rdi
	callq	_ngene_start
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	%r15, %rdi
	callq	_cxd_attach
	movq	%r15, %rdi
	callq	_ngene_buffer_config
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movl	$-1, (%r15)
	movq	%r15, %rdi
	callq	_init_channels
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_14
## %bb.6:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_ngene_stop
	movl	%r12d, %ebx
	jmp	LBB0_12
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_11:
	movl	%eax, %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_ngene_release_buffers
	jmp	LBB0_13
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ngene_probe                    ; -- Begin function ngene_probe
	.p2align	2
_ngene_probe:                           ; @ngene_probe
	.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	x21, x1
	mov	x19, x0
	bl	_pci_enable_device
	tbnz	x0, #63, LBB0_7
; %bb.1:
	mov	w0, #24
	bl	_vzalloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
	ldr	x8, [x21]
	stp	x8, x19, [x0, #8]
	ldr	w2, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	mov	x0, x20
	bl	_ngene_get_buffers
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_ngene_start
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_cxd_attach
	mov	x0, x20
	bl	_ngene_buffer_config
	tbnz	w0, #31, LBB0_8
; %bb.5:
	mov	w8, #-1
	str	w8, [x20]
	mov	x0, x20
	bl	_init_channels
	tbnz	w0, #31, LBB0_13
; %bb.6:
	mov	w21, #0
	b	LBB0_12
LBB0_7:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_8:
	mov	x21, x0
LBB0_9:
	mov	x0, x20
	bl	_ngene_release_buffers
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_12:
	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
LBB0_13:
	mov	x21, x0
	mov	x0, x20
	bl	_ngene_stop
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found %s\n"

.subsections_via_symbols
