	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flexcop_usb_probe
_flexcop_usb_probe:                     ## @flexcop_usb_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	%rdi, %r15
	callq	_interface_to_usbdev
	movq	%rax, %r12
	movl	$32, %edi
	callq	_flexcop_device_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	40(%rax), %r14
	movq	%rax, 24(%r14)
	leaq	16(%r14), %rdi
	callq	_mutex_init
	movq	_flexcop_usb_read_ibi_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_flexcop_usb_write_ibi_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_flexcop_usb_i2c_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_flexcop_usb_get_mac_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_flexcop_usb_stream_control@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$1, (%rbx)
	movq	_FC_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r12, 8(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%r12, 8(%r14)
	movq	%r15, (%r14)
	movq	%r14, %rdi
	callq	_flexcop_usb_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_flexcop_device_initialize
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_flexcop_usb_transfer_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_flexcop_device_exit
LBB0_7:
	movq	%r14, %rdi
	callq	_flexcop_usb_exit
LBB0_8:
	movq	%rbx, %rdi
	callq	_flexcop_device_kfree
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_info
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_flexcop_usb_read_ibi_reg,4,2   ## @flexcop_usb_read_ibi_reg
	.comm	_flexcop_usb_write_ibi_reg,4,2  ## @flexcop_usb_write_ibi_reg
	.comm	_flexcop_usb_i2c_request,4,2    ## @flexcop_usb_i2c_request
	.comm	_flexcop_usb_get_mac_addr,4,2   ## @flexcop_usb_get_mac_addr
	.comm	_flexcop_usb_stream_control,4,2 ## @flexcop_usb_stream_control
	.comm	_FC_USB,4,2                     ## @FC_USB
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.1:                               ## @.str.1
	.asciz	"%s successfully initialized and connected."

	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.no_dead_strip	_flexcop_usb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flexcop_usb_probe
_flexcop_usb_probe:                     ; @flexcop_usb_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, x0
	bl	_interface_to_usbdev
	mov	x22, x0
	mov	w0, #32
	bl	_flexcop_device_kmalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #40]
	str	x0, [x20, #24]
	add	x0, x20, #16
	bl	_mutex_init
Lloh0:
	adrp	x8, _flexcop_usb_read_ibi_reg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _flexcop_usb_read_ibi_reg@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _flexcop_usb_write_ibi_reg@GOTPAGE
Lloh4:
	ldr	x9, [x9, _flexcop_usb_write_ibi_reg@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _flexcop_usb_i2c_request@GOTPAGE
Lloh7:
	ldr	x10, [x10, _flexcop_usb_i2c_request@GOTPAGEOFF]
	stp	w9, w8, [x19, #32]
Lloh8:
	ldr	w8, [x10]
Lloh9:
	adrp	x9, _flexcop_usb_get_mac_addr@GOTPAGE
Lloh10:
	ldr	x9, [x9, _flexcop_usb_get_mac_addr@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh12:
	adrp	x8, _flexcop_usb_stream_control@GOTPAGE
Lloh13:
	ldr	x8, [x8, _flexcop_usb_stream_control@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #1
	str	w9, [x19]
Lloh15:
	adrp	x9, _FC_USB@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FC_USB@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	str	x22, [x19, #8]
Lloh18:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	stp	x21, x22, [x20]
	mov	x0, x20
	bl	_flexcop_usb_init
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_flexcop_device_initialize
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_flexcop_usb_transfer_init
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_flexcop_device_exit
LBB0_5:
	mov	x0, x20
	bl	_flexcop_usb_exit
LBB0_6:
	mov	x0, x19
	bl	_flexcop_device_kfree
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	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_9:
Lloh26:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_info
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_flexcop_usb_read_ibi_reg,4,2   ; @flexcop_usb_read_ibi_reg
	.comm	_flexcop_usb_write_ibi_reg,4,2  ; @flexcop_usb_write_ibi_reg
	.comm	_flexcop_usb_i2c_request,4,2    ; @flexcop_usb_i2c_request
	.comm	_flexcop_usb_get_mac_addr,4,2   ; @flexcop_usb_get_mac_addr
	.comm	_flexcop_usb_stream_control,4,2 ; @flexcop_usb_stream_control
	.comm	_FC_USB,4,2                     ; @FC_USB
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.1:                               ; @.str.1
	.asciz	"%s successfully initialized and connected."

	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.no_dead_strip	_flexcop_usb_probe
.subsections_via_symbols
