	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ims_pcu_probe
_ims_pcu_probe:                         ## @ims_pcu_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, %r15
	movq	%rdi, %r14
	callq	_interface_to_usbdev
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 32(%rax)
	movq	%rbx, 24(%rax)
	movq	(%r15), %rax
	movq	_IMS_PCU_BOOTLOADER_MODE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, (%r12)
	leaq	20(%r12), %rdi
	callq	_mutex_init
	leaq	16(%r12), %rdi
	callq	_init_completion
	movq	%r12, %rdi
	addq	$12, %rdi
	callq	_init_completion
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ims_pcu_parse_cdc_data
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.3:
	movl	4(%r12), %esi
	movq	_ims_pcu_driver@GOTPCREL(%rip), %rdi
	movq	%r12, %rdx
	callq	_usb_driver_claim_interface
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_18
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_5:
	movl	8(%r12), %edi
	movq	%r12, %rsi
	callq	_usb_set_intfdata
	movl	4(%r12), %edi
	movq	%r12, %rsi
	callq	_usb_set_intfdata
	movq	%r12, %rdi
	callq	_ims_pcu_buffers_alloc
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	%r12, %rdi
	callq	_ims_pcu_start_io
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movq	%r12, %rdi
	callq	_ims_pcu_line_setup
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	_ims_pcu_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	cmpl	$0, (%r12)
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_ims_pcu_init_bootloader_mode
	jmp	LBB0_12
LBB0_11:
	movq	%r12, %rdi
	callq	_ims_pcu_init_application_mode
LBB0_12:
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	_ims_pcu_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
LBB0_15:
	movq	%r12, %rdi
	callq	_ims_pcu_stop_io
LBB0_16:
	movq	%r12, %rdi
	callq	_ims_pcu_buffers_free
LBB0_17:
	movl	4(%r12), %esi
	movq	_ims_pcu_driver@GOTPCREL(%rip), %rdi
	callq	_usb_driver_release_interface
LBB0_18:
	movq	%r12, %rdi
	callq	_kfree
LBB0_19:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%r15d, %r15d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IMS_PCU_BOOTLOADER_MODE,8,3    ## @IMS_PCU_BOOTLOADER_MODE
	.comm	_ims_pcu_driver,4,2             ## @ims_pcu_driver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to claim corresponding data interface: %d\n"

	.comm	_ims_pcu_attr_group,4,2         ## @ims_pcu_attr_group
	.no_dead_strip	_ims_pcu_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ims_pcu_probe
_ims_pcu_probe:                         ; @ims_pcu_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	x20, x0
	bl	_interface_to_usbdev
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	stp	x22, x20, [x0, #24]
Lloh3:
	adrp	x8, _IMS_PCU_BOOTLOADER_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMS_PCU_BOOTLOADER_MODE@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w8, eq
	str	w8, [x0], #20
	bl	_mutex_init
	add	x0, x19, #16
	bl	_init_completion
	add	x0, x19, #12
	bl	_init_completion
	mov	x0, x20
	mov	x1, x19
	bl	_ims_pcu_parse_cdc_data
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.2:
	ldr	w1, [x19, #4]
Lloh6:
	adrp	x0, _ims_pcu_driver@GOTPAGE
Lloh7:
	ldr	x0, [x0, _ims_pcu_driver@GOTPAGEOFF]
	mov	x2, x19
	bl	_usb_driver_claim_interface
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	b	LBB0_17
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_5:
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_usb_set_intfdata
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_usb_set_intfdata
	mov	x0, x19
	bl	_ims_pcu_buffers_alloc
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.6:
	mov	x0, x19
	bl	_ims_pcu_start_io
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.7:
	mov	x0, x19
	bl	_ims_pcu_line_setup
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.8:
Lloh13:
	adrp	x1, _ims_pcu_attr_group@GOTPAGE
Lloh14:
	ldr	x1, [x1, _ims_pcu_attr_group@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_create_group
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.9:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_ims_pcu_init_bootloader_mode
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_ims_pcu_init_application_mode
LBB0_12:
	mov	x21, x0
	cbz	w0, LBB0_18
; %bb.13:
Lloh15:
	adrp	x1, _ims_pcu_attr_group@GOTPAGE
Lloh16:
	ldr	x1, [x1, _ims_pcu_attr_group@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_remove_group
LBB0_14:
	mov	x0, x19
	bl	_ims_pcu_stop_io
LBB0_15:
	mov	x0, x19
	bl	_ims_pcu_buffers_free
LBB0_16:
	ldr	w1, [x19, #4]
Lloh17:
	adrp	x0, _ims_pcu_driver@GOTPAGE
Lloh18:
	ldr	x0, [x0, _ims_pcu_driver@GOTPAGEOFF]
	bl	_usb_driver_release_interface
LBB0_17:
	mov	x0, x19
	bl	_kfree
LBB0_18:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IMS_PCU_BOOTLOADER_MODE,8,3    ; @IMS_PCU_BOOTLOADER_MODE
	.comm	_ims_pcu_driver,4,2             ; @ims_pcu_driver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to claim corresponding data interface: %d\n"

	.comm	_ims_pcu_attr_group,4,2         ; @ims_pcu_attr_group
	.no_dead_strip	_ims_pcu_probe
.subsections_via_symbols
