	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_usbhs_alloc_child
_omap_usbhs_alloc_child:                ## @omap_usbhs_alloc_child
	.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	%r9, %r12
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_platform_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_platform_device_add_resources
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_4:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_platform_device_add_data
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_6:
	movq	_usbhs_dmamask@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r13)
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dma_set_coherent_mask
	movq	%r12, (%r13)
	movq	%r13, %rdi
	callq	_platform_device_add
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r13, %rdi
	callq	_platform_device_put
	xorl	%r13d, %r13d
LBB0_9:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"platform_device_alloc %s failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"platform_device_add_resources failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"platform_device_add_data failed\n"

	.comm	_usbhs_dmamask,4,2              ## @usbhs_dmamask
L_.str.3:                               ## @.str.3
	.asciz	"platform_device_add failed\n"

	.no_dead_strip	_omap_usbhs_alloc_child
.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_child
_omap_usbhs_alloc_child:                ; @omap_usbhs_alloc_child
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	mov	w1, #0
	bl	_platform_device_alloc
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_platform_device_add_resources
	cbz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_3:
	str	x25, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_platform_device_add_data
	cbz	w0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _usbhs_dmamask@GOTPAGE
Lloh7:
	ldr	x8, [x8, _usbhs_dmamask@GOTPAGEOFF]
	str	x8, [x20, #8]
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_coherent_mask
	str	x19, [x20]
	mov	x0, x20
	bl	_platform_device_add
	cbz	w0, LBB0_9
; %bb.7:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_platform_device_put
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"platform_device_alloc %s failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"platform_device_add_resources failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"platform_device_add_data failed\n"

	.comm	_usbhs_dmamask,4,2              ; @usbhs_dmamask
l_.str.3:                               ; @.str.3
	.asciz	"platform_device_add failed\n"

	.no_dead_strip	_omap_usbhs_alloc_child
.subsections_via_symbols
