	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ibmvnic_set_mac
___ibmvnic_set_mac:                     ## @__ibmvnic_set_mac
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-56(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_IBMVNIC_CRQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_CHANGE_MAC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	-56(%rbp), %rdi
	movq	%r13, %rsi
	callq	_ether_addr_copy
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_init_completion
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_ibmvnic_send_crq
	movq	_EIO@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_wait_for_completion
	cmpq	$0, 8(%r15)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %r13
LBB0_4:
	xorl	%r12d, %r12d
	subl	(%r13), %r12d
	movq	(%r15), %rdi
	movq	(%r14), %rsi
	callq	_ether_addr_copy
LBB0_5:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_IBMVNIC_CRQ_CMD,4,2            ## @IBMVNIC_CRQ_CMD
	.comm	_CHANGE_MAC_ADDR,4,2            ## @CHANGE_MAC_ADDR
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	___ibmvnic_set_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ibmvnic_set_mac
___ibmvnic_set_mac:                     ; @__ibmvnic_set_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x21
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _IBMVNIC_CRQ_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBMVNIC_CRQ_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CHANGE_MAC_ADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHANGE_MAC_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	ldr	x0, [sp]
	mov	x1, x21
	bl	_ether_addr_copy
	add	x21, x20, #16
	mov	x0, x21
	bl	_init_completion
	mov	x1, sp
	mov	x0, x20
	bl	_ibmvnic_send_crq
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_wait_for_completion
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x20]
	ldr	x1, [x19]
	bl	_ether_addr_copy
LBB0_6:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_7:
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_IBMVNIC_CRQ_CMD,4,2            ; @IBMVNIC_CRQ_CMD
	.comm	_CHANGE_MAC_ADDR,4,2            ; @CHANGE_MAC_ADDR
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	___ibmvnic_set_mac
.subsections_via_symbols
