	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dp83640_gpio_defaults
_dp83640_gpio_defaults:                 ## @dp83640_gpio_defaults
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DP83640_N_PINS@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	testl	%r9d, %r9d
	jle	LBB0_4
## %bb.1:
	xorl	%r13d, %r13d
	leaq	L_.str(%rip), %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%rbx), %edi
	leaq	1(%r13), %r12
	movl	$4, %esi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	movl	%r13d, (%rbx)
	movslq	(%r14), %r9
	addq	$16, %rbx
	movq	%r12, %r13
	cmpq	%r9, %r12
	jl	LBB0_2
## %bb.3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_4:
	movq	_GPIO_TABLE_SIZE@GOTPCREL(%rip), %r8
	movl	(%r8), %ebx
	movq	_gpio_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.5:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edx
	testl	%edx, %edx
	jle	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r9d, %edx
	jg	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	cmpq	%rsi, %rbx
	jne	LBB0_6
LBB0_9:
	movq	_CALIBRATE_GPIO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	(%rcx,%rdx,4), %rdx
	shlq	$4, %rdx
	movq	_PTP_PF_PHYSYNC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -8(%rdx,%rdi)
	movl	$0, -12(%rdx,%rdi)
	movq	_PEROUT_GPIO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	(%rcx,%rdx,4), %rdx
	shlq	$4, %rdx
	movq	_PTP_PF_PEROUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -8(%rdx,%rdi)
	movl	$0, -12(%rdx,%rdi)
	movq	_EXTTS0_GPIO@GOTPCREL(%rip), %r9
	movslq	(%r9), %rsi
	cmpl	(%r8), %esi
	jge	LBB0_12
## %bb.10:
	movq	_PTP_PF_EXTTS@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx,%rsi,4), %rbx
	shlq	$4, %rbx
	movl	(%r10), %eax
	movl	%eax, -8(%rbx,%rdi)
	movl	(%r9), %eax
	movl	%esi, %edx
	subl	%eax, %edx
	movl	%edx, -12(%rbx,%rdi)
	incq	%rsi
	movslq	(%r8), %rax
	cmpq	%rax, %rsi
	jl	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DP83640_N_PINS,4,2             ## @DP83640_N_PINS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPIO%d"

	.comm	_GPIO_TABLE_SIZE,4,2            ## @GPIO_TABLE_SIZE
	.comm	_gpio_tab,8,3                   ## @gpio_tab
L_.str.1:                               ## @.str.1
	.asciz	"gpio_tab[%d]=%hu out of range"

	.comm	_CALIBRATE_GPIO,8,3             ## @CALIBRATE_GPIO
	.comm	_PTP_PF_PHYSYNC,4,2             ## @PTP_PF_PHYSYNC
	.comm	_PEROUT_GPIO,8,3                ## @PEROUT_GPIO
	.comm	_PTP_PF_PEROUT,4,2              ## @PTP_PF_PEROUT
	.comm	_EXTTS0_GPIO,4,2                ## @EXTTS0_GPIO
	.comm	_PTP_PF_EXTTS,4,2               ## @PTP_PF_EXTTS
	.no_dead_strip	_dp83640_gpio_defaults
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dp83640_gpio_defaults
_dp83640_gpio_defaults:                 ; @dp83640_gpio_defaults
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x22, _DP83640_N_PINS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DP83640_N_PINS@GOTPAGEOFF]
	ldr	w10, [x22]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	mov	x23, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #12]
	add	x21, x24, #1
	mov	w1, #4
	mov	x2, x20
	mov	x3, x21
	bl	_snprintf
	str	w24, [x23], #16
	ldrsw	x10, [x22]
	mov	x24, x21
	cmp	x21, x10
	b.lt	LBB0_2
LBB0_3:
Lloh4:
	adrp	x8, _GPIO_TABLE_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GPIO_TABLE_SIZE@GOTPAGEOFF]
	ldr	w11, [x8]
Lloh6:
	adrp	x9, _gpio_tab@GOTPAGE
Lloh7:
	ldr	x9, [x9, _gpio_tab@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	w11, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x1, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x9, x1, lsl #2]
	cmp	w2, #1
	ccmp	w2, w10, #0, ge
	b.gt	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x1, #1
	cmp	x11, x1
	b.ne	LBB0_5
LBB0_7:
Lloh9:
	adrp	x10, _CALIBRATE_GPIO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CALIBRATE_GPIO@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldrsw	x10, [x9, x10, lsl #2]
Lloh12:
	adrp	x11, _PTP_PF_PHYSYNC@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PTP_PF_PHYSYNC@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	add	x10, x19, x10, lsl #4
	stp	wzr, w11, [x10, #-12]
Lloh15:
	adrp	x10, _PEROUT_GPIO@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PEROUT_GPIO@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	ldrsw	x10, [x9, x10, lsl #2]
Lloh18:
	adrp	x11, _PTP_PF_PEROUT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _PTP_PF_PEROUT@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	add	x10, x19, x10, lsl #4
	stp	wzr, w11, [x10, #-12]
Lloh21:
	adrp	x10, _EXTTS0_GPIO@GOTPAGE
Lloh22:
	ldr	x10, [x10, _EXTTS0_GPIO@GOTPAGEOFF]
	ldrsw	x11, [x10]
	ldr	w12, [x8]
	cmp	w11, w12
	b.ge	LBB0_10
; %bb.8:
Lloh23:
	adrp	x12, _PTP_PF_EXTTS@GOTPAGE
Lloh24:
	ldr	x12, [x12, _PTP_PF_EXTTS@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x13, [x9, x11, lsl #2]
	ldr	w14, [x12]
	add	x13, x19, x13, lsl #4
	stur	w14, [x13, #-8]
	ldr	w14, [x10]
	sub	w14, w11, w14
	stur	w14, [x13, #-12]
	add	x11, x11, #1
	ldrsw	x13, [x8]
	cmp	x11, x13
	b.lt	LBB0_9
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pr_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DP83640_N_PINS,4,2             ; @DP83640_N_PINS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPIO%d"

	.comm	_GPIO_TABLE_SIZE,4,2            ; @GPIO_TABLE_SIZE
	.comm	_gpio_tab,8,3                   ; @gpio_tab
l_.str.1:                               ; @.str.1
	.asciz	"gpio_tab[%d]=%hu out of range"

	.comm	_CALIBRATE_GPIO,8,3             ; @CALIBRATE_GPIO
	.comm	_PTP_PF_PHYSYNC,4,2             ; @PTP_PF_PHYSYNC
	.comm	_PEROUT_GPIO,8,3                ; @PEROUT_GPIO
	.comm	_PTP_PF_PEROUT,4,2              ; @PTP_PF_PEROUT
	.comm	_EXTTS0_GPIO,4,2                ; @EXTTS0_GPIO
	.comm	_PTP_PF_EXTTS,4,2               ; @PTP_PF_EXTTS
	.no_dead_strip	_dp83640_gpio_defaults
.subsections_via_symbols
