	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ql_get_mac_addr_reg            ## -- Begin function ql_get_mac_addr_reg
	.p2align	4, 0x90
_ql_get_mac_addr_reg:                   ## @ql_get_mac_addr_reg
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	%esi, %eax
	orl	$2, %eax
	cmpl	$131, %eax
	jne	LBB0_9
## %bb.1:
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	_MAC_ADDR_IDX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MAC_ADDR_MW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ql_wait_reg_rdy
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	_MAC_ADDR_IDX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r15d, %eax
	shll	%cl, %eax
	movl	(%r13), %esi
	movq	_MAC_ADDR_ADR@GOTPCREL(%rip), %rdx
	movq	_MAC_ADDR_RS@GOTPCREL(%rip), %rcx
	movl	(%rdx), %edx
	orl	%ebx, %edx
	orl	%eax, %edx
	orl	(%rcx), %edx
	movq	%r12, %rdi
	callq	_ql_write32
	movl	(%r13), %esi
	movq	_MAC_ADDR_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ql_wait_reg_rdy
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	_MAC_ADDR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ql_read32
	movl	%eax, (%r14)
	movl	(%r13), %esi
	movq	_MAC_ADDR_MW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ql_wait_reg_rdy
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	_MAC_ADDR_IDX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r15d, %eax
	shll	%cl, %eax
	movl	(%r13), %esi
	movq	_MAC_ADDR_ADR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%ebx, %edx
	orl	%eax, %edx
	movq	_MAC_ADDR_RS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$1, %edx
	movq	%r12, %rdi
	callq	_ql_write32
	movl	(%r13), %esi
	movq	_MAC_ADDR_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ql_wait_reg_rdy
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	_MAC_ADDR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ql_read32
	movl	%eax, 4(%r14)
	movl	$0, %eax
	cmpl	$131, %ebx
	jne	LBB0_10
## %bb.6:
	movl	(%r13), %esi
	movq	_MAC_ADDR_MW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ql_wait_reg_rdy
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	_MAC_ADDR_IDX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	_MAC_ADDR_ADR@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%r13), %esi
	movq	_MAC_ADDR_RS@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	orl	$131, %r15d
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_ql_write32
	movl	(%r13), %esi
	movq	_MAC_ADDR_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ql_wait_reg_rdy
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	_MAC_ADDR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ql_read32
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%ebx, %r8d
	callq	_netif_crit
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_ADDR_IDX,4,2               ## @MAC_ADDR_IDX
	.comm	_MAC_ADDR_MW,4,2                ## @MAC_ADDR_MW
	.comm	_MAC_ADDR_IDX_SHIFT,4,2         ## @MAC_ADDR_IDX_SHIFT
	.comm	_MAC_ADDR_ADR,4,2               ## @MAC_ADDR_ADR
	.comm	_MAC_ADDR_RS,4,2                ## @MAC_ADDR_RS
	.comm	_MAC_ADDR_MR,4,2                ## @MAC_ADDR_MR
	.comm	_MAC_ADDR_DATA,4,2              ## @MAC_ADDR_DATA
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Address type %d not yet supported.\n"

	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ql_get_mac_addr_reg            ; -- Begin function ql_get_mac_addr_reg
	.p2align	2
_ql_get_mac_addr_reg:                   ; @ql_get_mac_addr_reg
	.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
	mov	x22, x1
	mov	x20, x0
	orr	w8, w1, #0x2
	cmp	w8, #131
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x21, x2
Lloh0:
	adrp	x23, _MAC_ADDR_IDX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAC_ADDR_IDX@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _MAC_ADDR_MW@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAC_ADDR_MW@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w3, #0
	bl	_ql_wait_reg_rdy
	cbnz	w0, LBB0_10
; %bb.2:
Lloh4:
	adrp	x25, _MAC_ADDR_IDX_SHIFT@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MAC_ADDR_IDX_SHIFT@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w8, [x25]
	lsl	w8, w21, w8
Lloh6:
	adrp	x26, _MAC_ADDR_ADR@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MAC_ADDR_ADR@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh8:
	adrp	x27, _MAC_ADDR_RS@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MAC_ADDR_RS@GOTPAGEOFF]
	ldr	w10, [x27]
	orr	w9, w9, w22
	orr	w8, w9, w8
	orr	w2, w8, w10
	mov	x0, x20
	bl	_ql_write32
	ldr	w1, [x23]
Lloh10:
	adrp	x28, _MAC_ADDR_MR@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MAC_ADDR_MR@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x0, x20
	mov	w3, #0
	bl	_ql_wait_reg_rdy
	cbnz	w0, LBB0_10
; %bb.3:
Lloh12:
	adrp	x8, _MAC_ADDR_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAC_ADDR_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ql_read32
	str	w0, [x19]
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w3, #0
	bl	_ql_wait_reg_rdy
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w1, [x23]
	ldr	w8, [x25]
	lsl	w8, w21, w8
	ldr	w9, [x26]
	ldr	w10, [x27]
	orr	w9, w9, w22
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w2, w8, #0x1
	mov	x0, x20
	bl	_ql_write32
	ldr	w1, [x23]
	ldr	w2, [x28]
	mov	x0, x20
	mov	w3, #0
	bl	_ql_wait_reg_rdy
	cbnz	w0, LBB0_10
; %bb.5:
Lloh15:
	adrp	x8, _MAC_ADDR_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAC_ADDR_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ql_read32
	str	w0, [x19, #4]
	cmp	w22, #131
	b.ne	LBB0_11
; %bb.6:
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w3, #0
	bl	_ql_wait_reg_rdy
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	w1, [x23]
	ldr	w8, [x25]
	lsl	w8, w21, w8
	ldr	w9, [x26]
	ldr	w10, [x27]
	orr	w8, w9, w8
	orr	w8, w8, w10
	mov	w9, #131
	orr	w2, w8, w9
	mov	x0, x20
	bl	_ql_write32
	ldr	w1, [x23]
	ldr	w2, [x28]
	mov	x0, x20
	mov	w3, #0
	bl	_ql_wait_reg_rdy
	cbnz	w0, LBB0_10
; %bb.8:
Lloh18:
	adrp	x8, _MAC_ADDR_DATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAC_ADDR_DATA@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ql_read32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
	b	LBB0_10
LBB0_9:
Lloh21:
	adrp	x8, _ifup@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh24:
	adrp	x3, l_.str@PAGE
Lloh25:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x22
	bl	_netif_crit
Lloh26:
	adrp	x8, _EPERM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_ADDR_IDX,4,2               ; @MAC_ADDR_IDX
	.comm	_MAC_ADDR_MW,4,2                ; @MAC_ADDR_MW
	.comm	_MAC_ADDR_IDX_SHIFT,4,2         ; @MAC_ADDR_IDX_SHIFT
	.comm	_MAC_ADDR_ADR,4,2               ; @MAC_ADDR_ADR
	.comm	_MAC_ADDR_RS,4,2                ; @MAC_ADDR_RS
	.comm	_MAC_ADDR_MR,4,2                ; @MAC_ADDR_MR
	.comm	_MAC_ADDR_DATA,4,2              ; @MAC_ADDR_DATA
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Address type %d not yet supported.\n"

	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
