	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sm501_register_usbhost
_sm501_register_usbhost:                ## @sm501_register_usbhost
	.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	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_sm501_create_subdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$262144, %edx                   ## imm = 0x40000
	movl	$131072, %ecx                   ## imm = 0x20000
	callq	_sm501_create_subio
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$262144, %ecx                   ## imm = 0x40000
	callq	_sm501_create_mem
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_sm501_create_irq
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sm501_register_device          ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sm501-usb"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_sm501_register_usbhost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sm501_register_usbhost
_sm501_register_usbhost:                ; @sm501_register_usbhost
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	mov	w3, #0
	bl	_sm501_create_subdev
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x1, [x0]
	mov	x0, x19
	mov	w2, #262144
	mov	w3, #131072
	bl	_sm501_create_subio
	ldr	x8, [x21]
	add	x1, x8, #4
	mov	x0, x19
	mov	x2, x20
	mov	w3, #262144
	bl	_sm501_create_mem
	ldr	x8, [x21]
	add	x1, x8, #8
	mov	x0, x19
	bl	_sm501_create_irq
	mov	x0, x19
	mov	x1, x21
	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
	b	_sm501_register_device
LBB0_2:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sm501-usb"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_sm501_register_usbhost
.subsections_via_symbols
