	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_set_mac_address
_smsc95xx_set_mac_address:              ## @smsc95xx_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	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	movl	8(%rax), %esi
	shll	$8, %ecx
	orl	(%rax), %ecx
	shll	$16, %esi
	movl	12(%rax), %edx
	shll	$24, %edx
	orl	%esi, %edx
	orl	%ecx, %edx
	movl	16(%rax), %r12d
	movl	20(%rax), %r15d
	movq	_ADDRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	shll	$8, %r15d
	orl	%r12d, %r15d
	movq	_ADDRH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_smsc95xx_write_reg
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_devwarn
	movl	%r15d, %ebx
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_devwarn
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADDRL,4,2                      ## @ADDRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to write ADDRL: %d"

	.comm	_ADDRH,4,2                      ## @ADDRH
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write ADDRH: %d"

	.no_dead_strip	_smsc95xx_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 smsc95xx_set_mac_address
_smsc95xx_set_mac_address:              ; @smsc95xx_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	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldp	w9, w10, [x8]
	orr	w9, w9, w10, lsl #8
	ldp	w10, w11, [x8, #8]
	orr	w9, w9, w10, lsl #16
	orr	w2, w9, w11, lsl #24
	ldp	w21, w22, [x8, #16]
Lloh0:
	adrp	x8, _ADDRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADDRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_3
; %bb.1:
	orr	w2, w21, w22, lsl #8
Lloh3:
	adrp	x8, _ADDRH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADDRH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_6
LBB0_3:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	mov	x2, x20
	bl	_devwarn
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ADDRL,4,2                      ; @ADDRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to write ADDRL: %d"

	.comm	_ADDRH,4,2                      ; @ADDRH
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write ADDRH: %d"

	.no_dead_strip	_smsc95xx_set_mac_address
.subsections_via_symbols
