	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlge_set_mac_address
_qlge_set_mac_address:                  ## @qlge_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r15), %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rdi
	movq	(%r15), %rsi
	movl	8(%rbx), %edx
	callq	_memcpy
	movq	8(%r14), %rdi
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	callq	_memcpy
	movq	_SEM_MAC_ADDR_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ql_sem_spinlock
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	(%rbx), %rsi
	movq	_MAC_ADDR_TYPE_CAM_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAX_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	imull	(%r14), %ecx
	movq	%r14, %rdi
	callq	_ql_set_mac_addr_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
LBB0_5:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ql_sem_unlock
	jmp	LBB0_6
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_SEM_MAC_ADDR_MASK,4,2          ## @SEM_MAC_ADDR_MASK
	.comm	_MAC_ADDR_TYPE_CAM_MAC,4,2      ## @MAC_ADDR_TYPE_CAM_MAC
	.comm	_MAX_CQ,4,2                     ## @MAX_CQ
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load MAC address.\n"

	.no_dead_strip	_qlge_set_mac_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlge_set_mac_address
_qlge_set_mac_address:                  ; @qlge_set_mac_address
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x0, [x21]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x0, [x20]
	ldr	x1, [x21]
	ldr	w2, [x20, #8]
	bl	_memcpy
	ldr	x0, [x19, #8]
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
	bl	_memcpy
Lloh0:
	adrp	x22, _SEM_MAC_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SEM_MAC_ADDR_MASK@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ql_sem_spinlock
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x1, [x20]
Lloh2:
	adrp	x8, _MAC_ADDR_TYPE_CAM_MAC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAC_ADDR_TYPE_CAM_MAC@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _MAX_CQ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_CQ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mul	w3, w9, w8
	mov	x0, x19
	bl	_ql_set_mac_addr_reg
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _hw@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ql_sem_unlock
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_SEM_MAC_ADDR_MASK,4,2          ; @SEM_MAC_ADDR_MASK
	.comm	_MAC_ADDR_TYPE_CAM_MAC,4,2      ; @MAC_ADDR_TYPE_CAM_MAC
	.comm	_MAX_CQ,4,2                     ; @MAX_CQ
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load MAC address.\n"

	.no_dead_strip	_qlge_set_mac_address
.subsections_via_symbols
