	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_start
_cs_hsi_start:                          ## @cs_hsi_start
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	leaq	48(%r13), %rdi
	callq	_spin_lock_init
	movq	%r14, 40(%r13)
	movq	_CS_STATE_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	%rbx, 32(%r13)
	movq	%rbx, (%r13)
	movq	%r15, 8(%r13)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r13, %rdi
	addq	$24, %rdi
	callq	_init_waitqueue_head
	movq	%r13, %rdi
	callq	_cs_alloc_cmds
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	callq	_cs_hsi_alloc_data
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_hsi_claim_port
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_ssip_slave_get_master
	movl	%eax, 20(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	20(%r13), %edi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
LBB0_12:
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_hsi_release_port
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_16
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_15
LBB0_5:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_14
LBB0_7:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_13:
	movq	%r13, %rdi
	callq	_cs_hsi_free_data
LBB0_14:
	movq	%r13, %rdi
	callq	_cs_free_cmds
LBB0_15:
	movq	%r13, %rdi
	callq	_kfree
LBB0_16:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	_ssip_slave_running
	testl	%eax, %eax
	je	LBB0_11
## %bb.18:
	movq	_CS_STATE_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_local_bh_disable
	movq	%r13, %rdi
	callq	_cs_hsi_read_on_control
	xorl	%eax, %eax
	callq	_local_bh_enable
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_BUG_ON
	movq	%r13, (%r12)
	jmp	LBB0_17
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cs_hsi_start\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CS_STATE_CLOSED,4,2            ## @CS_STATE_CLOSED
L_.str.1:                               ## @.str.1
	.asciz	"Unable to alloc HSI messages\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to alloc HSI messages for data\n"

L_.str.3:                               ## @.str.3
	.asciz	"Could not open, HSI port already claimed\n"

L_.str.4:                               ## @.str.4
	.asciz	"Could not get HSI master client\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.5:                               ## @.str.5
	.asciz	"HSI port not initialized\n"

	.comm	_CS_STATE_OPENED,4,2            ## @CS_STATE_OPENED
L_.str.6:                               ## @.str.6
	.asciz	"cs_hsi_start...done\n"

L_.str.7:                               ## @.str.7
	.asciz	"cs_hsi_start...done/error\n\n"

	.no_dead_strip	_cs_hsi_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs_hsi_start
_cs_hsi_start:                          ; @cs_hsi_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	cbz	x20, LBB0_7
; %bb.1:
	add	x0, x20, #48
	bl	_spin_lock_init
Lloh5:
	adrp	x8, _CS_STATE_CLOSED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CS_STATE_CLOSED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	stp	x22, x19, [x20, #32]
	stp	x22, x23, [x20]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x20, #24
	bl	_init_waitqueue_head
	mov	x0, x20
	bl	_cs_alloc_cmds
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_cs_hsi_alloc_data
	tbnz	w0, #31, LBB0_9
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_hsi_claim_port
	tbnz	w0, #31, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_ssip_slave_get_master
	str	w0, [x20, #20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20, #20]
	cbz	x8, LBB0_16
; %bb.5:
	bl	_PTR_ERR
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x19
	bl	_hsi_release_port
	b	LBB0_11
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_8:
	mov	x22, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_9:
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_10:
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_11:
	mov	x0, x20
	bl	_cs_hsi_free_data
LBB0_12:
	mov	x0, x20
	bl	_cs_free_cmds
LBB0_13:
	mov	x0, x20
	bl	_kfree
LBB0_14:
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	_ssip_slave_running
	cbz	w0, LBB0_18
; %bb.17:
Lloh21:
	adrp	x8, _CS_STATE_OPENED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CS_STATE_OPENED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	bl	_local_bh_disable
	mov	x0, x20
	bl	_cs_hsi_read_on_control
	bl	_local_bh_enable
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	cmp	x21, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	w22, #0
	str	x20, [x21]
	b	LBB0_15
LBB0_18:
Lloh26:
	adrp	x8, _ENODEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cs_hsi_start\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CS_STATE_CLOSED,4,2            ; @CS_STATE_CLOSED
l_.str.1:                               ; @.str.1
	.asciz	"Unable to alloc HSI messages\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to alloc HSI messages for data\n"

l_.str.3:                               ; @.str.3
	.asciz	"Could not open, HSI port already claimed\n"

l_.str.4:                               ; @.str.4
	.asciz	"Could not get HSI master client\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.5:                               ; @.str.5
	.asciz	"HSI port not initialized\n"

	.comm	_CS_STATE_OPENED,4,2            ; @CS_STATE_OPENED
l_.str.6:                               ; @.str.6
	.asciz	"cs_hsi_start...done\n"

l_.str.7:                               ; @.str.7
	.asciz	"cs_hsi_start...done/error\n\n"

	.no_dead_strip	_cs_hsi_start
.subsections_via_symbols
