	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcf50633_client_dev_register
_pcf50633_client_dev_register:          ## @pcf50633_client_dev_register
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	movl	$-1, %esi
	callq	_platform_device_alloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r12), %rdi
	callq	_platform_device_put
LBB0_3:
	movq	%r15, (%rbx)
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_platform_device_add_data
	movl	(%r15), %eax
	movq	(%r12), %rdi
	movl	%eax, (%rdi)
	callq	_platform_device_add
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r12), %rdi
	callq	_platform_device_put
	movq	$0, (%r12)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Falied to allocate %s\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Error allocating subdev pdata\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to register %s: %d\n"

	.no_dead_strip	_pcf50633_client_dev_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcf50633_client_dev_register
_pcf50633_client_dev_register:          ; @pcf50633_client_dev_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #-1
	bl	_platform_device_alloc
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	mov	x22, x0
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x21]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19]
	bl	_platform_device_put
LBB0_3:
	str	x21, [x22]
	ldr	x0, [x19]
	mov	x1, x22
	mov	w2, #8
	bl	_platform_device_add_data
	ldr	w8, [x21]
	ldr	x0, [x19]
	str	w8, [x0]
	bl	_platform_device_add
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w8, [x21]
	stp	x20, x0, [sp]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	bl	_dev_err
	ldr	x0, [x19]
	bl	_platform_device_put
	str	xzr, [x19]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x21]
	str	x20, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Falied to allocate %s\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Error allocating subdev pdata\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to register %s: %d\n"

	.no_dead_strip	_pcf50633_client_dev_register
.subsections_via_symbols
