	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cros_ec_ishtp_probe
_cros_ec_ishtp_probe:                   ## @cros_ec_ishtp_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, %r14
	callq	_ishtp_device
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_init_lock@GOTPCREL(%rip), %rdi
	callq	_down_write
	movq	%r14, %rdi
	callq	_ishtp_cl_allocate
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ishtp_set_drvdata
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ishtp_set_client_data
	movq	%r15, 24(%rbx)
	movq	%r14, 16(%rbx)
	leaq	8(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	_reset_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_ish_evt_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	%r15, %rdi
	callq	_cros_ish_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_ishtp_get_device
	movq	_init_lock@GOTPCREL(%rip), %rdi
	callq	_up_write
	movq	%rbx, %rdi
	callq	_cros_ec_dev_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r12d
	movq	_ISHTP_CL_DISCONNECTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ishtp_set_connection_state
	movq	%r15, %rdi
	callq	_ishtp_cl_disconnect
	movq	%r15, %rdi
	callq	_ishtp_cl_unlink
	movq	%r15, %rdi
	callq	_ishtp_cl_flush_queues
	movq	%r14, %rdi
	callq	_ishtp_put_device
LBB0_8:
	movq	%r15, %rdi
	callq	_ishtp_cl_free
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_9:
	movq	_init_lock@GOTPCREL(%rip), %rdi
	callq	_up_write
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_init_lock,4,2                  ## @init_lock
	.comm	_reset_handler,4,2              ## @reset_handler
	.comm	_ish_evt_handler,4,2            ## @ish_evt_handler
	.comm	_ISHTP_CL_DISCONNECTING,4,2     ## @ISHTP_CL_DISCONNECTING
	.no_dead_strip	_cros_ec_ishtp_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cros_ec_ishtp_probe
_cros_ec_ishtp_probe:                   ; @cros_ec_ishtp_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	x19, x0
	bl	_ishtp_device
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x0, _init_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _init_lock@GOTPAGEOFF]
	bl	_down_write
	mov	x0, x19
	bl	_ishtp_cl_allocate
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ishtp_set_drvdata
	mov	x0, x20
	mov	x1, x21
	bl	_ishtp_set_client_data
	stp	x19, x20, [x21, #16]
	add	x0, x21, #8
	bl	_init_waitqueue_head
	add	x0, x21, #4
Lloh5:
	adrp	x8, _reset_handler@GOTPAGE
Lloh6:
	ldr	x8, [x8, _reset_handler@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh8:
	adrp	x8, _ish_evt_handler@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ish_evt_handler@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_WORK
	mov	x0, x20
	bl	_cros_ish_init
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_ishtp_get_device
Lloh11:
	adrp	x0, _init_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _init_lock@GOTPAGEOFF]
	bl	_up_write
	mov	x0, x21
	bl	_cros_ec_dev_init
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.4:
Lloh13:
	adrp	x8, _ISHTP_CL_DISCONNECTING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ISHTP_CL_DISCONNECTING@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ishtp_set_connection_state
	mov	x0, x20
	bl	_ishtp_cl_disconnect
	mov	x0, x20
	bl	_ishtp_cl_unlink
	mov	x0, x20
	bl	_ishtp_cl_flush_queues
	mov	x0, x19
	bl	_ishtp_put_device
LBB0_5:
	mov	x0, x20
	bl	_ishtp_cl_free
	b	LBB0_8
LBB0_6:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_7:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
Lloh22:
	adrp	x0, _init_lock@GOTPAGE
Lloh23:
	ldr	x0, [x0, _init_lock@GOTPAGEOFF]
	bl	_up_write
LBB0_9:
	mov	x0, x22
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_init_lock,4,2                  ; @init_lock
	.comm	_reset_handler,4,2              ; @reset_handler
	.comm	_ish_evt_handler,4,2            ; @ish_evt_handler
	.comm	_ISHTP_CL_DISCONNECTING,4,2     ; @ISHTP_CL_DISCONNECTING
	.no_dead_strip	_cros_ec_ishtp_probe
.subsections_via_symbols
