	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbhs_omap_get_dt_pdata
_usbhs_omap_get_dt_pdata:               ## @usbhs_omap_get_dt_pdata
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$0, (%r12)
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_1:
	movl	(%r12), %edx
LBB0_3:
	movq	_OMAP3_HS_USB_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jle	LBB0_4
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_4:
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	leaq	-59(%rbp), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_OMAP3_HS_USB_PORTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%r14, %rbx
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_OMAP_USBHS_PORT_MODE_UNUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	leaq	1(%rbx), %r14
	movq	%r13, %rdi
	movl	$11, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r14d, %ecx
	callq	_snprintf
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	leaq	-80(%rbp), %rdx
	callq	_of_property_read_string
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_port_modes@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movq	-80(%rbp), %rdx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_match_string
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r15d
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %r8d
	callq	_dev_dbg
	movq	8(%r12), %rax
	movl	%r15d, (%rax,%rbx,4)
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_property_read_bool
	movl	%eax, 16(%r12)
	xorl	%r14d, %r14d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.16:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-80(%rbp), %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_14
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"num-ports"

	.comm	_OMAP3_HS_USB_PORTS,4,2         ## @OMAP3_HS_USB_PORTS
L_.str.1:                               ## @.str.1
	.asciz	"Too many num_ports <%d> in device tree. Max %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_OMAP_USBHS_PORT_MODE_UNUSED,4,2 ## @OMAP_USBHS_PORT_MODE_UNUSED
L_.str.2:                               ## @.str.2
	.asciz	"port%d-mode"

	.comm	_port_modes,4,2                 ## @port_modes
L_.str.3:                               ## @.str.3
	.asciz	"Invalid port%d-mode \"%s\" in device tree\n"

L_.str.4:                               ## @.str.4
	.asciz	"port%d-mode: %s -> %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"single-ulpi-bypass"

	.no_dead_strip	_usbhs_omap_get_dt_pdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbhs_omap_get_dt_pdata
_usbhs_omap_get_dt_pdata:               ; @usbhs_omap_get_dt_pdata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	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, #40]
	ldr	x21, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_of_property_read_u32
	cbz	w0, LBB0_2
; %bb.1:
	mov	w2, #0
	str	wzr, [x20]
	b	LBB0_3
LBB0_2:
	ldr	w2, [x20]
LBB0_3:
Lloh5:
	adrp	x27, _OMAP3_HS_USB_PORTS@GOTPAGE
Lloh6:
	ldr	x27, [x27, _OMAP3_HS_USB_PORTS@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w2, w8
	b.le	LBB0_6
; %bb.4:
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_5:
	bl	_dev_warn
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_6:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x22, #0
Lloh12:
	adrp	x28, _OMAP_USBHS_PORT_MODE_UNUSED@GOTPAGE
Lloh13:
	ldr	x28, [x28, _OMAP_USBHS_PORT_MODE_UNUSED@GOTPAGEOFF]
Lloh14:
	adrp	x23, l_.str.2@PAGE
Lloh15:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh16:
	adrp	x24, _port_modes@GOTPAGE
Lloh17:
	ldr	x24, [x24, _port_modes@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldrsw	x8, [x27]
	mov	x22, x25
	cmp	x25, x8
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28]
	ldr	x9, [x20, #8]
	str	w8, [x9, x22, lsl #2]
	add	x25, x22, #1
	add	x0, sp, #29
	mov	w1, #11
	mov	x2, x23
	mov	x3, x25
	bl	_snprintf
	add	x1, sp, #29
	add	x2, sp, #16
	mov	x0, x21
	bl	_of_property_read_string
	tbnz	w0, #31, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w26, [x24]
	mov	x0, x26
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [sp, #16]
	mov	x0, x26
	bl	_match_string
	tbnz	w0, #31, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x26, x0
	ldr	x3, [sp, #16]
	mov	x0, x19
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x22
	mov	x4, x26
	bl	_dev_dbg
	ldr	x8, [x20, #8]
	str	w26, [x8, x22, lsl #2]
	b	LBB0_8
LBB0_12:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20, #16]
LBB0_13:
	ldr	x8, [sp, #40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	b	LBB0_5
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"num-ports"

	.comm	_OMAP3_HS_USB_PORTS,4,2         ; @OMAP3_HS_USB_PORTS
l_.str.1:                               ; @.str.1
	.asciz	"Too many num_ports <%d> in device tree. Max %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_OMAP_USBHS_PORT_MODE_UNUSED,4,2 ; @OMAP_USBHS_PORT_MODE_UNUSED
l_.str.2:                               ; @.str.2
	.asciz	"port%d-mode"

	.comm	_port_modes,4,2                 ; @port_modes
l_.str.3:                               ; @.str.3
	.asciz	"Invalid port%d-mode \"%s\" in device tree\n"

l_.str.4:                               ; @.str.4
	.asciz	"port%d-mode: %s -> %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"single-ulpi-bypass"

	.no_dead_strip	_usbhs_omap_get_dt_pdata
.subsections_via_symbols
