	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ish_dev_init                   ## -- Begin function ish_dev_init
	.p2align	4, 0x90
_ish_dev_init:                          ## @ish_dev_init
	.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	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$44, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ishtp_device_init
	leaq	36(%r14), %rdi
	callq	_init_waitqueue_head
	leaq	32(%r14), %rdi
	callq	_spin_lock_init
	leaq	28(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %r12
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movq	_IPC_TX_FIFO_SIZE@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_4
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_5:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_7:
	movq	_ish_hw_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	%r15, 8(%r14)
	movq	_IPC_PAYLOAD_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$-4, %rax
	movq	%rax, (%r14)
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IPC_TX_FIFO_SIZE,4,2           ## @IPC_TX_FIFO_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[ishtp-ish]: failure in Tx FIFO allocations (%d)\n"

	.comm	_ish_hw_ops,4,2                 ## @ish_hw_ops
	.comm	_IPC_PAYLOAD_SIZE,8,3           ## @IPC_PAYLOAD_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ish_dev_init                   ; -- Begin function ish_dev_init
	.p2align	2
_ish_dev_init:                          ; @ish_dev_init
	.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	x19, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #44
	bl	_devm_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_ishtp_device_init
	add	x0, x20, #36
	bl	_init_waitqueue_head
	add	x0, x20, #32
	bl	_spin_lock_init
	add	x0, x20, #28
	bl	_INIT_LIST_HEAD
	add	x21, x20, #24
	mov	x0, x21
	bl	_INIT_LIST_HEAD
Lloh2:
	adrp	x24, _IPC_TX_FIFO_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IPC_TX_FIFO_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	w22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #4
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x21
	bl	_list_add_tail
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	ldr	x0, [x20, #8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
LBB0_6:
Lloh6:
	adrp	x8, _ish_hw_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ish_hw_ops@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh8:
	adrp	x8, _IPC_PAYLOAD_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPC_PAYLOAD_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	sub	x8, x8, #4
	stp	x8, x19, [x20]
LBB0_7:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IPC_TX_FIFO_SIZE,4,2           ; @IPC_TX_FIFO_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[ishtp-ish]: failure in Tx FIFO allocations (%d)\n"

	.comm	_ish_hw_ops,4,2                 ; @ish_hw_ops
	.comm	_IPC_PAYLOAD_SIZE,8,3           ; @IPC_PAYLOAD_SIZE
.subsections_via_symbols
