	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipc_create_punit_device
_ipc_create_punit_device:               ## @ipc_create_punit_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$-1, -40(%rbp)
	movq	_ipcdev@GOTPCREL(%rip), %r14
	movl	8(%r14), %eax
	movl	12(%r14), %ecx
	movl	%eax, -36(%rbp)
	movq	_punit_res_array@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_PUNIT_DEVICE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	%ecx, -24(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_platform_device_register_full
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipcdev,16,3                    ## @ipcdev
	.comm	_punit_res_array,4,2            ## @punit_res_array
	.comm	_PUNIT_DEVICE_NAME,4,2          ## @PUNIT_DEVICE_NAME
	.no_dead_strip	_ipc_create_punit_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipc_create_punit_device
_ipc_create_punit_device:               ; @ipc_create_punit_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	w8, #-1
Lloh0:
	adrp	x20, _ipcdev@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ipcdev@GOTPAGEOFF]
	ldp	w9, w10, [x20, #8]
	stp	w8, w9, [sp, #8]
Lloh2:
	adrp	x8, _punit_res_array@GOTPAGE
Lloh3:
	ldr	x8, [x8, _punit_res_array@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PUNIT_DEVICE_NAME@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PUNIT_DEVICE_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	str	w10, [sp, #24]
	add	x0, sp, #8
	bl	_platform_device_register_full
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_PTR_ERR
	b	LBB0_3
LBB0_2:
	str	x19, [x20]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ipcdev,16,3                    ; @ipcdev
	.comm	_punit_res_array,4,2            ; @punit_res_array
	.comm	_PUNIT_DEVICE_NAME,4,2          ; @PUNIT_DEVICE_NAME
	.no_dead_strip	_ipc_create_punit_device
.subsections_via_symbols
