	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function awg_parse_delay
_awg_parse_delay:                       ## @awg_parse_delay
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.2:
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movl	$0, (%r12)
	movl	$0, (%rsi)
	callq	_ofw_bus_get_node
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movl	%eax, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testq	%rax, %rax
	js	LBB0_14
## %bb.3:
	movl	-36(%rbp), %eax
LBB0_4:
	movl	%eax, (%rbx)
	cmpl	$8, %eax
	jl	LBB0_8
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movl	%r15d, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testq	%rax, %rax
	js	LBB0_23
## %bb.15:
	movslq	-36(%rbp), %rax
	imull	$-1030792151, %eax, %ecx        ## imm = 0xC28F5C29
	addl	$85899344, %ecx                 ## imm = 0x51EB850
	rorl	$2, %ecx
	cmpl	$42949673, %ecx                 ## imm = 0x28F5C29
	jb	LBB0_24
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_20
LBB0_23:
	movl	(%rbx), %eax
	cmpl	$8, %eax
	jge	LBB0_6
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movl	%r15d, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testq	%rax, %rax
	js	LBB0_17
## %bb.9:
	movl	-36(%rbp), %ecx
LBB0_10:
	movl	%ecx, (%r12)
LBB0_11:
	xorl	%eax, %eax
	cmpl	$32, %ecx
	jl	LBB0_22
## %bb.12:
	leaq	L_.str.7(%rip), %rsi
LBB0_13:
	movl	%r14d, %edi
	callq	_device_printf
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_17:
	leaq	L_.str.5(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movl	%r15d, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testq	%rax, %rax
	js	LBB0_25
## %bb.18:
	movslq	-36(%rbp), %rax
	imull	$-1030792151, %eax, %ecx        ## imm = 0xC28F5C29
	addl	$85899344, %ecx                 ## imm = 0x51EB850
	rorl	$2, %ecx
	cmpl	$42949673, %ecx                 ## imm = 0x28F5C29
	jb	LBB0_26
## %bb.19:
	leaq	L_.str.6(%rip), %rsi
LBB0_20:
	movl	%r14d, %edi
	callq	_device_printf
	movq	_EDOM@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
LBB0_22:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	jmp	LBB0_4
LBB0_25:
	movl	(%r12), %ecx
	jmp	LBB0_11
LBB0_26:
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$37, %rcx
	addl	%eax, %ecx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx-delay"

L_.str.1:                               ## @.str.1
	.asciz	"allwinner,tx-delay-ps"

L_.str.2:                               ## @.str.2
	.asciz	"tx-delay-ps is not a multiple of 100\n"

	.comm	_EDOM,4,2                       ## @EDOM
L_.str.3:                               ## @.str.3
	.asciz	"tx-delay out of range\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
L_.str.4:                               ## @.str.4
	.asciz	"rx-delay"

L_.str.5:                               ## @.str.5
	.asciz	"allwinner,rx-delay-ps"

L_.str.6:                               ## @.str.6
	.asciz	"rx-delay-ps is not within documented domain\n"

L_.str.7:                               ## @.str.7
	.asciz	"rx-delay out of range\n"

	.no_dead_strip	_awg_parse_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function awg_parse_delay
_awg_parse_delay:                       ; @awg_parse_delay
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_6
; %bb.2:
	mov	x22, x1
	mov	x19, x0
	str	wzr, [x20]
	str	wzr, [x1]
	bl	_ofw_bus_get_node
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	w3, #4
	bl	_OF_getencprop
	tbnz	x0, #63, LBB0_7
; %bb.3:
	ldr	w8, [sp, #12]
LBB0_4:
	str	w8, [x22]
	cmp	w8, #8
	b.lt	LBB0_11
LBB0_5:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_20
LBB0_7:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
	tbnz	x0, #63, LBB0_10
; %bb.8:
	ldr	w9, [sp, #12]
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w9, w8
	lsr	x10, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w10
	mov	w10, #100
	msub	w9, w8, w10, w9
	cbz	w9, LBB0_4
; %bb.9:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_10:
	ldr	w8, [x22]
	cmp	w8, #8
	b.ge	LBB0_5
LBB0_11:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
	tbnz	x0, #63, LBB0_16
; %bb.12:
	ldr	w8, [sp, #12]
LBB0_13:
	str	w8, [x20]
	cmp	w8, #32
	b.lt	LBB0_23
LBB0_14:
Lloh12:
	adrp	x1, l_.str.7@PAGE
Lloh13:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_device_printf
Lloh14:
	adrp	x8, _ERANGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_20
LBB0_16:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
	tbnz	x0, #63, LBB0_22
; %bb.17:
	ldr	w9, [sp, #12]
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w9, w8
	lsr	x10, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w10
	mov	w10, #100
	msub	w9, w8, w10, w9
	cbz	w9, LBB0_13
; %bb.18:
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_device_printf
Lloh20:
	adrp	x8, _EDOM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EDOM@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
LBB0_21:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_22:
	ldr	w8, [x20]
	cmp	w8, #32
	b.ge	LBB0_14
LBB0_23:
	mov	w0, #0
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx-delay"

l_.str.1:                               ; @.str.1
	.asciz	"allwinner,tx-delay-ps"

l_.str.2:                               ; @.str.2
	.asciz	"tx-delay-ps is not a multiple of 100\n"

	.comm	_EDOM,4,2                       ; @EDOM
l_.str.3:                               ; @.str.3
	.asciz	"tx-delay out of range\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
l_.str.4:                               ; @.str.4
	.asciz	"rx-delay"

l_.str.5:                               ; @.str.5
	.asciz	"allwinner,rx-delay-ps"

l_.str.6:                               ; @.str.6
	.asciz	"rx-delay-ps is not within documented domain\n"

l_.str.7:                               ; @.str.7
	.asciz	"rx-delay out of range\n"

	.no_dead_strip	_awg_parse_delay
.subsections_via_symbols
