	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_set_hw_address
_iwl_set_hw_address:                    ## @iwl_set_hw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	cmpq	$0, 8(%rsi)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_iwl_set_hw_address_from_csr
	jmp	LBB0_5
LBB0_2:
	movq	%rcx, %rax
	movq	(%rsi), %rcx
	movq	_IWL_NVM_EXT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%r8, %rcx
	movq	%rax, %r8
	callq	_iwl_set_hw_address_family_8000
	jmp	LBB0_5
LBB0_3:
	movq	_HW_ADDR@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	4(%rax,%rcx,4), %edx
	movq	(%rbx), %rsi
	movl	%edx, (%rsi)
	movl	(%rax,%rcx,4), %edx
	movl	%edx, 4(%rsi)
	movl	12(%rax,%rcx,4), %edx
	movl	%edx, 8(%rsi)
	movl	8(%rax,%rcx,4), %edx
	movl	%edx, 12(%rsi)
	movl	20(%rax,%rcx,4), %edx
	movl	%edx, 16(%rsi)
	movl	16(%rax,%rcx,4), %eax
	movl	%eax, 20(%rsi)
LBB0_5:
	movq	(%rbx), %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_INFO
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_NVM_EXT,8,3                ## @IWL_NVM_EXT
	.comm	_HW_ADDR,4,2                    ## @HW_ADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no valid mac address was found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"base HW address: %pM\n"

	.no_dead_strip	_iwl_set_hw_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_set_hw_address
_iwl_set_hw_address:                    ; @iwl_set_hw_address
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
	ldr	x9, [x1, #8]
	cbz	x9, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_set_hw_address_from_csr
	b	LBB0_5
LBB0_2:
	mov	x8, x3
	ldr	x9, [x1]
Lloh0:
	adrp	x10, _IWL_NVM_EXT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IWL_NVM_EXT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x2, x20
	mov	x3, x4
	mov	x4, x8
	bl	_iwl_set_hw_address_family_8000
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x9, _HW_ADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HW_ADDR@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	ldr	w9, [x8, #4]
	ldr	x10, [x20]
	str	w9, [x10]
	ldr	w9, [x8]
	str	w9, [x10, #4]
	ldr	w9, [x8, #12]
	str	w9, [x10, #8]
	ldr	w9, [x8, #8]
	str	w9, [x10, #12]
	ldr	w9, [x8, #20]
	str	w9, [x10, #16]
	ldr	w8, [x8, #16]
	str	w8, [x10, #20]
LBB0_5:
	ldr	x0, [x20]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x2, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_INFO
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_NVM_EXT,8,3                ; @IWL_NVM_EXT
	.comm	_HW_ADDR,4,2                    ; @HW_ADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no valid mac address was found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"base HW address: %pM\n"

	.no_dead_strip	_iwl_set_hw_address
.subsections_via_symbols
