	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_read_mac_addr           ## -- Begin function i2400m_read_mac_addr
	.p2align	4, 0x90
_i2400m_read_mac_addr:                  ## @i2400m_read_mac_addr
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_i2400m_dev
	movq	%rax, %r14
	movq	16(%r13), %r12
	leaq	L_.str(%rip), %rdx
	movl	$5, %edi
	movq	%rax, %rsi
	movq	%r13, %rcx
	callq	_d_fnstart
	movq	8(%r13), %rbx
	movq	_I2400M_BRH_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_i2400m_brh_command
	movl	%eax, 16(%rbx)
	movl	$2113512, %edi                  ## imm = 0x203FE8
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movl	$6, %edi
	callq	_cpu_to_le32
	movq	%rax, (%rbx)
	leaq	-128(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$24, %edx
	movl	$88, %r8d
	xorl	%r9d, %r9d
	callq	_i2400m_bm_cmd
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-104(%rbp), %ecx
	movl	-100(%rbp), %r8d
	movl	-96(%rbp), %r9d
	movl	-92(%rbp), %r10d
	movl	-88(%rbp), %ebx
	movl	-84(%rbp), %eax
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rdx
	movl	$2, %edi
	movq	%r14, %rsi
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_d_printf
	addq	$32, %rsp
	cmpl	$1, (%r13)
	jne	LBB0_4
## %bb.3:
	leaq	-92(%rbp), %rdi
	movabsq	$94489280512, %rax              ## imm = 0x1600000000
	movq	%rax, -104(%rbp)
	movl	$211, -96(%rbp)
	movl	$3, %esi
	callq	_get_random_bytes
	movl	-104(%rbp), %edx
	movl	-100(%rbp), %ecx
	movl	-96(%rbp), %r8d
	movl	-92(%rbp), %r9d
	movl	-88(%rbp), %r10d
	movl	-84(%rbp), %ebx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_dev_err
	addq	$16, %rsp
LBB0_4:
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rbx
	movq	%r12, %r14
	movl	%edx, 8(%r12)
	movl	4(%r12), %edi
	leaq	-104(%rbp), %r12
	movq	%r12, %rsi
	callq	_memcpy
	movl	(%r14), %edi
	movq	%rbx, %r14
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_memcpy
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	leaq	L_.str.4(%rip), %rdx
	movl	$5, %edi
	movq	%r14, %rsi
	movq	%r13, %rcx
	movl	%r15d, %r8d
	callq	_d_fnend
	movl	%r15d, %eax
	addq	$88, %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	"(i2400m %p)\n"

	.comm	_I2400M_BRH_READ,4,2            ## @I2400M_BRH_READ
L_.str.1:                               ## @.str.1
	.asciz	"BM: read mac addr failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"mac addr is %02x:%02x:%02x:%02x:%02x:%02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"BM is MAC addr impaired, faking MAC addr to mac addr is %02x:%02x:%02x:%02x:%02x:%02x\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.4:                               ## @.str.4
	.asciz	"(i2400m %p) = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function i2400m_read_mac_addr
lCPI0_0:
	.long	0                               ; 0x0
	.long	22                              ; 0x16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_i2400m_read_mac_addr
	.p2align	2
_i2400m_read_mac_addr:                  ; @i2400m_read_mac_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	bl	_i2400m_dev
	mov	x20, x0
	ldr	x23, [x19, #16]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #5
	mov	x1, x20
	mov	x3, x19
	bl	_d_fnstart
	ldr	x21, [x19, #8]
Lloh2:
	adrp	x8, _I2400M_BRH_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2400M_BRH_READ@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #1
	bl	_i2400m_brh_command
	str	w0, [x21, #16]
	mov	w0, #16360
	movk	w0, #32, lsl #16
	bl	_cpu_to_le32
	str	x0, [x21, #8]
	mov	w0, #6
	bl	_cpu_to_le32
	str	x0, [x21]
	add	x24, sp, #40
	add	x3, sp, #40
	mov	x0, x19
	mov	x1, x21
	mov	w2, #24
	mov	w4, #88
	mov	w5, #0
	bl	_i2400m_bm_cmd
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	add	x21, x24, #24
	ldp	w3, w4, [sp, #64]
	ldp	w5, w6, [sp, #72]
	ldp	w7, w8, [sp, #80]
	str	w8, [sp]
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #2
	mov	x1, x20
	bl	_d_printf
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	add	x0, x24, #36
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #64]
	mov	w8, #211
	str	w8, [sp, #72]
	mov	w1, #3
	bl	_get_random_bytes
	ldp	w2, w8, [sp, #64]
	ldp	w9, w10, [sp, #72]
	ldp	w11, w12, [sp, #80]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	w22, #0
LBB0_3:
Lloh11:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh12:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x24]
	str	w2, [x23, #8]
	ldr	w0, [x23, #4]
	mov	x1, x21
	bl	_memcpy
	ldr	w0, [x23]
	ldr	w2, [x24]
	mov	x1, x21
	bl	_memcpy
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
LBB0_5:
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w0, #5
	mov	x1, x20
	mov	x3, x19
	mov	x4, x22
	bl	_d_fnend
	mov	x0, x22
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(i2400m %p)\n"

	.comm	_I2400M_BRH_READ,4,2            ; @I2400M_BRH_READ
l_.str.1:                               ; @.str.1
	.asciz	"BM: read mac addr failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"mac addr is %02x:%02x:%02x:%02x:%02x:%02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"BM is MAC addr impaired, faking MAC addr to mac addr is %02x:%02x:%02x:%02x:%02x:%02x\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.4:                               ; @.str.4
	.asciz	"(i2400m %p) = %d\n"

.subsections_via_symbols
