	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw210x_read_mac_address
_dw210x_read_mac_address:               ## @dw210x_read_mac_address
	.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	$1128, %rsp                     ## imm = 0x468
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -1152(%rbp)               ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -1144(%rbp)
	xorl	%ebx, %ebx
	movq	_DW210X_READ_MSG@GOTPCREL(%rip), %r14
	leaq	-1144(%rbp), %r12
	leaq	-1136(%rbp), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r14), %eax
	movl	%eax, (%rsp)
	movl	$182, %esi
	movl	$160, %edx
	movl	%ebx, %ecx
	movq	%r12, %r8
	movl	$2, %r9d
	callq	_dw210x_op_rw
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-1144(%rbp), %eax
	movl	%ebx, %ecx
	andl	$15, %ecx
	movl	%eax, -1136(%rbp,%rcx,4)
	movl	%eax, -1072(%rbp,%rbx,4)
	cmpl	$15, %ecx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-15(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_deb_xfer
	movq	%r13, %rdi
	movl	$16, %esi
	movq	_deb_xfer@GOTPCREL(%rip), %rdx
	callq	_debug_dump
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_6:
	leaq	-1040(%rbp), %rsi
	movq	-1152(%rbp), %rdi               ## 8-byte Reload
	movl	$6, %edx
	callq	_memcpy
	xorl	%eax, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$1128, %rsp                     ## imm = 0x468
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DW210X_READ_MSG,4,2            ## @DW210X_READ_MSG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read eeprom failed."

L_.str.1:                               ## @.str.1
	.asciz	"%02x: "

	.no_dead_strip	_dw210x_read_mac_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw210x_read_mac_address
_dw210x_read_mac_address:               ; @dw210x_read_mac_address
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1104
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	xzr, [sp]
Lloh3:
	adrp	x24, _DW210X_READ_MSG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DW210X_READ_MSG@GOTPAGEOFF]
	add	x25, sp, #8
	add	x26, sp, #72
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh7:
	adrp	x23, _deb_xfer@GOTPAGE
Lloh8:
	ldr	x23, [x23, _deb_xfer@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	cmp	x21, #256
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	w6, [x24]
	mov	x4, sp
	mov	w1, #182
	mov	w2, #160
	mov	x3, x21
	mov	w5, #2
	bl	_dw210x_op_rw
	tbnz	x0, #63, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp]
	and	w9, w21, #0xf
	str	w8, [x25, w9, uxtw #2]
	str	w8, [x26, x21, lsl #2]
	cmp	w9, #15
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w1, w21, #15
	mov	x0, x22
	bl	_deb_xfer
	add	x0, sp, #8
	mov	w1, #16
	mov	x2, x23
	bl	_debug_dump
	b	LBB0_1
LBB0_5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	add	x8, sp, #72
	add	x1, x8, #32
	mov	x0, x19
	mov	w2, #6
	bl	_memcpy
	mov	w0, #0
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	sp, sp, #1104
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DW210X_READ_MSG,4,2            ; @DW210X_READ_MSG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read eeprom failed."

l_.str.1:                               ; @.str.1
	.asciz	"%02x: "

	.no_dead_strip	_dw210x_read_mac_address
.subsections_via_symbols
