	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_setmac
_emac_setmac:                           ## @emac_setmac
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$2, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.3:
	movq	_EMAC_MAX_TXRX_CHANNELS@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jle	LBB0_9
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_emac_set_type1addr
	incq	%rbx
	cmpq	(%r12), %rbx
	jl	LBB0_5
	jmp	LBB0_9
LBB0_6:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movl	$1, %r8d
	callq	_emac_set_type2addr
LBB0_7:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emac_set_type0addr             ## TAILCALL
LBB0_8:
	movq	8(%r13), %r14
	movq	%r13, %rdi
	callq	_netif_msg_drv
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_MAX_TXRX_CHANNELS,8,3     ## @EMAC_MAX_TXRX_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DaVinci EMAC: Wrong addressing\n"

	.no_dead_strip	_emac_setmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_setmac
_emac_setmac:                           ; @emac_setmac
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x22, _EMAC_MAX_TXRX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EMAC_MAX_TXRX_CHANNELS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_emac_set_type1addr
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_5
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x21
	mov	w4, #1
	bl	_emac_set_type2addr
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_emac_set_type0addr
LBB0_8:
	ldr	x19, [x20, #8]
	mov	x0, x20
	bl	_netif_msg_drv
	cbz	x0, LBB0_10
; %bb.9:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_MAX_TXRX_CHANNELS,8,3     ; @EMAC_MAX_TXRX_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DaVinci EMAC: Wrong addressing\n"

	.no_dead_strip	_emac_setmac
.subsections_via_symbols
