	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmac_get_station_address
_bmac_get_station_address:              ## @bmac_get_station_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	movq	_SROMAddressBits@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_reset_and_select_srom
	movq	_EnetAddressOffset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	addl	%r12d, %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_read_srom
	movzwl	%ax, %ebx
	movzbl	%bl, %edi
	callq	_bitrev8
	movb	%al, (%r14,%r12,2)
	shrl	$8, %ebx
	movl	%ebx, %edi
	callq	_bitrev8
	movb	%al, 1(%r14,%r12,2)
	incq	%r12
	cmpq	$6, %r12
	jne	LBB0_1
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EnetAddressOffset,4,2          ## @EnetAddressOffset
	.comm	_SROMAddressBits,4,2            ## @SROMAddressBits
	.no_dead_strip	_bmac_get_station_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmac_get_station_address
_bmac_get_station_address:              ; @bmac_get_station_address
	.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, x1
	mov	x20, x0
	bl	_reset_and_select_srom
Lloh0:
	adrp	x22, _EnetAddressOffset@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EnetAddressOffset@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
Lloh2:
	adrp	x23, _SROMAddressBits@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SROMAddressBits@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_read_srom
	mov	x21, x0
	and	w0, w0, #0xff
	bl	_bitrev8
	strb	w0, [x19]
	lsr	w0, w21, #8
	bl	_bitrev8
	strb	w0, [x19, #1]
	mov	x0, x20
	bl	_reset_and_select_srom
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	w1, w8, #1
	ldr	w2, [x23]
	mov	x0, x20
	bl	_read_srom
	mov	x21, x0
	and	w0, w0, #0xff
	bl	_bitrev8
	strb	w0, [x19, #2]
	lsr	w0, w21, #8
	bl	_bitrev8
	strb	w0, [x19, #3]
	mov	x0, x20
	bl	_reset_and_select_srom
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	w1, w8, #2
	ldr	w2, [x23]
	mov	x0, x20
	bl	_read_srom
	mov	x21, x0
	and	w0, w0, #0xff
	bl	_bitrev8
	strb	w0, [x19, #4]
	lsr	w0, w21, #8
	bl	_bitrev8
	strb	w0, [x19, #5]
	mov	x0, x20
	bl	_reset_and_select_srom
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	w1, w8, #3
	ldr	w2, [x23]
	mov	x0, x20
	bl	_read_srom
	mov	x21, x0
	and	w0, w0, #0xff
	bl	_bitrev8
	strb	w0, [x19, #6]
	lsr	w0, w21, #8
	bl	_bitrev8
	strb	w0, [x19, #7]
	mov	x0, x20
	bl	_reset_and_select_srom
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	w1, w8, #4
	ldr	w2, [x23]
	mov	x0, x20
	bl	_read_srom
	mov	x21, x0
	and	w0, w0, #0xff
	bl	_bitrev8
	strb	w0, [x19, #8]
	lsr	w0, w21, #8
	bl	_bitrev8
	strb	w0, [x19, #9]
	mov	x0, x20
	bl	_reset_and_select_srom
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	w1, w8, #5
	ldr	w2, [x23]
	mov	x0, x20
	bl	_read_srom
	mov	x20, x0
	and	w0, w0, #0xff
	bl	_bitrev8
	strb	w0, [x19, #10]
	lsr	w0, w20, #8
	bl	_bitrev8
	strb	w0, [x19, #11]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EnetAddressOffset,4,2          ; @EnetAddressOffset
	.comm	_SROMAddressBits,4,2            ; @SROMAddressBits
	.no_dead_strip	_bmac_get_station_address
.subsections_via_symbols
