	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_usbhs_alloc_children
_omap_usbhs_alloc_children:             ## @omap_usbhs_alloc_children
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dev_get_platdata
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_OMAP_EHCI_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	movl	$2, %edx
	movq	%r14, %rcx
	movl	$4, %r8d
	movq	%r12, %r9
	callq	_omap_usbhs_alloc_child
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movl	(%rbx), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rdi
	callq	_platform_get_resource_byname
	movq	_ENODEV@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	(%r13), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%r12, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_OMAP_OHCI_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	movl	$2, %edx
	movq	%r14, %rcx
	movl	$4, %r8d
	movq	%r12, %r9
	callq	_omap_usbhs_alloc_child
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.8(%rip), %rsi
LBB0_13:
	movq	%r12, %rdi
	callq	_dev_err
	movl	(%rbx), %ebx
	movq	%r15, %rdi
	callq	_platform_device_unregister
LBB0_14:
	negl	%ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ehci"

L_.str.1:                               ## @.str.1
	.asciz	"EHCI get resource IORESOURCE_MEM failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
L_.str.2:                               ## @.str.2
	.asciz	"ehci-irq"

L_.str.3:                               ## @.str.3
	.asciz	" EHCI get resource IORESOURCE_IRQ failed\n"

	.comm	_OMAP_EHCI_DEVICE,4,2           ## @OMAP_EHCI_DEVICE
L_.str.4:                               ## @.str.4
	.asciz	"omap_usbhs_alloc_child failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"ohci"

L_.str.6:                               ## @.str.6
	.asciz	"OHCI get resource IORESOURCE_MEM failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"ohci-irq"

L_.str.8:                               ## @.str.8
	.asciz	"OHCI get resource IORESOURCE_IRQ failed\n"

	.comm	_OMAP_OHCI_DEVICE,4,2           ## @OMAP_OHCI_DEVICE
	.no_dead_strip	_omap_usbhs_alloc_children
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_usbhs_alloc_children
_omap_usbhs_alloc_children:             ; @omap_usbhs_alloc_children
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_dev_get_platdata
	mov	x20, x0
Lloh3:
	adrp	x22, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x0]
	str	w8, [sp]
Lloh7:
	adrp	x23, _IORESOURCE_IRQ@GOTPAGE
Lloh8:
	ldr	x23, [x23, _IORESOURCE_IRQ@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w8, [x0]
	str	w8, [sp, #4]
Lloh11:
	adrp	x8, _OMAP_EHCI_DEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OMAP_EHCI_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, sp
	mov	w2, #2
	mov	x3, x20
	mov	w4, #4
	mov	x5, x19
	bl	_omap_usbhs_alloc_child
	cbz	x0, LBB0_10
; %bb.3:
	mov	x21, x0
	ldr	w1, [x22]
Lloh14:
	adrp	x2, l_.str.5@PAGE
Lloh15:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_11
; %bb.4:
	ldr	w8, [x0]
	str	w8, [sp]
	ldr	w1, [x23]
Lloh16:
	adrp	x2, l_.str.7@PAGE
Lloh17:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_12
; %bb.5:
	ldr	w8, [x0]
	str	w8, [sp, #4]
Lloh18:
	adrp	x8, _OMAP_OHCI_DEVICE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OMAP_OHCI_DEVICE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, sp
	mov	w2, #2
	mov	x3, x20
	mov	w4, #4
	mov	x5, x19
	bl	_omap_usbhs_alloc_child
	cbz	x0, LBB0_13
; %bb.6:
	mov	w0, #0
	b	LBB0_16
LBB0_7:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
	b	LBB0_15
LBB0_10:
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w19, [x8]
	b	LBB0_15
LBB0_11:
Lloh33:
	adrp	x20, _ENODEV@GOTPAGE
Lloh34:
	ldr	x20, [x20, _ENODEV@GOTPAGEOFF]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh37:
	adrp	x20, _ENODEV@GOTPAGE
Lloh38:
	ldr	x20, [x20, _ENODEV@GOTPAGEOFF]
Lloh39:
	adrp	x1, l_.str.8@PAGE
Lloh40:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh41:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dev_err
	ldr	w19, [x20]
	mov	x0, x21
	bl	_platform_device_unregister
LBB0_15:
	neg	w0, w19
LBB0_16:
	ldr	x8, [sp, #8]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ehci"

l_.str.1:                               ; @.str.1
	.asciz	"EHCI get resource IORESOURCE_MEM failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
l_.str.2:                               ; @.str.2
	.asciz	"ehci-irq"

l_.str.3:                               ; @.str.3
	.asciz	" EHCI get resource IORESOURCE_IRQ failed\n"

	.comm	_OMAP_EHCI_DEVICE,4,2           ; @OMAP_EHCI_DEVICE
l_.str.4:                               ; @.str.4
	.asciz	"omap_usbhs_alloc_child failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"ohci"

l_.str.6:                               ; @.str.6
	.asciz	"OHCI get resource IORESOURCE_MEM failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"ohci-irq"

l_.str.8:                               ; @.str.8
	.asciz	"OHCI get resource IORESOURCE_IRQ failed\n"

	.comm	_OMAP_OHCI_DEVICE,4,2           ; @OMAP_OHCI_DEVICE
	.no_dead_strip	_omap_usbhs_alloc_children
.subsections_via_symbols
