	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gs_usb_probe
_gs_usb_probe:                          ## @gs_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	$48879, (%rax)                  ## imm = 0xBEEF
	movq	%r15, %rdi
	callq	_interface_to_usbdev
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_interface_to_usbdev
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_GS_USB_BREQ_HOST_FORMAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rsi
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%rsi), %ecx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %r12
	orl	(%r12), %ecx
	movq	8(%r15), %rsi
	movl	(%rsi), %r9d
	subq	$8, %rsp
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	$1, %r8d
	pushq	$1000                           ## imm = 0x3E8
	pushq	$32
	pushq	%rbx
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	testl	%r14d, %r14d
	js	LBB0_4
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_interface_to_usbdev
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_interface_to_usbdev
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_GS_USB_BREQ_DEVICE_CONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rsi
	movl	(%r13), %ecx
	orl	(%rsi), %ecx
	orl	(%r12), %ecx
	movq	8(%r15), %rsi
	movl	(%rsi), %r9d
	subq	$8, %rsp
	movl	%ebx, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	movl	$1, %r8d
	pushq	$1000                           ## imm = 0x3E8
	pushq	$32
	pushq	%rbx
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	4(%rbx), %r13d
	incl	%r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_dev_info
	movq	_GS_MAX_INTF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %r13d
	jbe	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_22
LBB0_7:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%rbx, %rdi
	jmp	LBB0_21
LBB0_10:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r12
	leaq	16(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_init_usb_anchor
	movq	%r12, %rdi
	addq	$24, %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_usb_set_intfdata
	movq	%r15, %rdi
	callq	_interface_to_usbdev
	movl	%eax, 20(%r12)
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.13:
	movl	%r13d, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_gs_make_candev
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	%r12, (%rax)
	incq	%r13
	cmpq	%r13, %rbx
	jne	LBB0_14
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_11:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_gs_destroy_candev
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_17
LBB0_18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_usb_kill_anchored_urbs
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	%r12, %rdi
LBB0_21:
	callq	_kfree
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GS_USB_BREQ_HOST_FORMAT,4,2    ## @GS_USB_BREQ_HOST_FORMAT
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't send data format (err=%d)\n"

	.comm	_GS_USB_BREQ_DEVICE_CONFIG,4,2  ## @GS_USB_BREQ_DEVICE_CONFIG
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't get device config: (err=%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Configuring for %d interfaces\n"

	.comm	_GS_MAX_INTF,4,2                ## @GS_MAX_INTF
L_.str.3:                               ## @.str.3
	.asciz	"Driver cannot handle more that %d CAN interfaces\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gs_usb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gs_usb_probe
_gs_usb_probe:                          ; @gs_usb_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_15
; %bb.1:
	mov	x20, x0
	mov	w8, #48879
	str	w8, [x0]
	mov	x0, x19
	bl	_interface_to_usbdev
	mov	x21, x0
	mov	x0, x19
	bl	_interface_to_usbdev
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh2:
	adrp	x8, _GS_USB_BREQ_HOST_FORMAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GS_USB_BREQ_HOST_FORMAT@GOTPAGEOFF]
Lloh4:
	adrp	x9, _USB_DIR_OUT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _USB_DIR_OUT@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x24, _USB_TYPE_VENDOR@GOTPAGE
Lloh9:
	ldr	x24, [x24, _USB_TYPE_VENDOR@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh10:
	adrp	x25, _USB_RECIP_INTERFACE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _USB_RECIP_INTERFACE@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w3, w8, w9
	ldr	x8, [x19, #8]
	ldr	w5, [x8]
	mov	w8, #1000
	str	w8, [sp]
	mov	x0, x21
	mov	w4, #1
	mov	x6, x20
	mov	w7, #32
	bl	_usb_control_msg
	mov	x23, x0
	mov	x0, x20
	bl	_kfree
	tbnz	w23, #31, LBB0_6
; %bb.2:
	ldr	w1, [x22]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_15
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_interface_to_usbdev
	mov	x21, x0
	mov	x0, x19
	bl	_interface_to_usbdev
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh12:
	adrp	x8, _GS_USB_BREQ_DEVICE_CONFIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GS_USB_BREQ_DEVICE_CONFIG@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w3, w8, w9
	ldr	x8, [x19, #8]
	ldr	w5, [x8]
	mov	w8, #1000
	str	w8, [sp]
	mov	x0, x21
	mov	w4, #1
	mov	x6, x20
	mov	w7, #32
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	w8, [x20, #4]
	add	w23, w8, #1
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_info
Lloh20:
	adrp	x8, _GS_MAX_INTF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GS_MAX_INTF@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	cmp	w23, w2
	b.ls	LBB0_8
; %bb.5:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_kfree
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_6:
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_17
LBB0_7:
	mov	x23, x0
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	mov	x0, x20
	bl	_kfree
	b	LBB0_17
LBB0_8:
	ldr	w1, [x22]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.9:
	mov	x21, x0
	add	x22, x0, #16
	mov	x0, x22
	bl	_init_usb_anchor
	add	x0, x21, #24
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x19
	mov	x1, x21
	bl	_usb_set_intfdata
	mov	x0, x19
	bl	_interface_to_usbdev
	str	w0, [x21, #20]
	cbz	w23, LBB0_13
; %bb.10:
	mov	x24, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x19
	mov	x2, x20
	bl	_gs_make_candev
	ldr	x8, [x21, #8]
	lsl	x9, x24, #3
	str	x0, [x8, x9]
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x9]
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x24, lsl #3]
	str	x21, [x8]
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_11
LBB0_13:
	mov	x0, x20
	bl	_kfree
	mov	w23, #0
	b	LBB0_17
LBB0_14:
	mov	x0, x20
	bl	_kfree
LBB0_15:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_17:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x24, lsl #3]
	bl	_PTR_ERR
	mov	x23, x0
	cbz	w24, LBB0_21
; %bb.19:
	mov	x19, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x19, lsl #3]
	bl	_gs_destroy_candev
	add	x19, x19, #1
	cmp	x24, x19
	b.ne	LBB0_20
LBB0_21:
	mov	x0, x22
	bl	_usb_kill_anchored_urbs
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GS_USB_BREQ_HOST_FORMAT,4,2    ; @GS_USB_BREQ_HOST_FORMAT
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't send data format (err=%d)\n"

	.comm	_GS_USB_BREQ_DEVICE_CONFIG,4,2  ; @GS_USB_BREQ_DEVICE_CONFIG
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't get device config: (err=%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Configuring for %d interfaces\n"

	.comm	_GS_MAX_INTF,4,2                ; @GS_MAX_INTF
l_.str.3:                               ; @.str.3
	.asciz	"Driver cannot handle more that %d CAN interfaces\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gs_usb_probe
.subsections_via_symbols
