	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sm501_create_subdev
_sm501_create_subdev:                   ## @sm501_create_subdev
	.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
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	leal	(%r14,%rbx,4), %edi
	addl	$56, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_sm501_device_release@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	%r12, (%rax)
	movl	4(%r15), %ecx
	movl	%ecx, 48(%rax)
	movl	(%r15), %ecx
	movl	%ecx, 32(%rax)
	movl	$-1, 16(%rax)
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	leaq	56(%rax), %rcx
	movq	%rcx, 40(%rax)
	movl	%ebx, 8(%rax)
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	%rax, %rcx
	addq	$56, %rcx
	movq	%rcx, 24(%rax)
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_sm501_device_release,4,2       ## @sm501_device_release
	.no_dead_strip	_sm501_create_subdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sm501_create_subdev
_sm501_create_subdev:                   ; @sm501_create_subdev
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	add	w8, w3, w2, lsl #2
	add	w0, w8, #56
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _sm501_device_release@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sm501_device_release@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	x22, [x0]
	ldp	w10, w9, [x21]
	str	w9, [x0, #48]
	stp	w10, w8, [x0, #32]
	mov	w8, #-1
	str	w8, [x0, #16]
	cbz	w20, LBB0_3
; %bb.2:
	add	x8, x0, #56
	str	x8, [x0, #40]
	str	w20, [x0, #8]
LBB0_3:
	cbz	w19, LBB0_5
; %bb.4:
	add	x8, x0, #56
	str	x8, [x0, #24]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_sm501_device_release,4,2       ; @sm501_device_release
	.no_dead_strip	_sm501_create_subdev
.subsections_via_symbols
