	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_mgmt_xmit
_sja1105_mgmt_xmit:                     ## @sja1105_mgmt_xmit
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	$0, -64(%rbp)
	movq	8(%rdi), %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_eth_hdr
	movl	(%rax), %edi
	callq	_ether_addr_to_u64
	movl	%eax, -68(%rbp)
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_BIT
	movl	%eax, -72(%rbp)
	movl	$1, -88(%rbp)
	movq	$0, -80(%rbp)
	movl	%r12d, -84(%rbp)
	movq	_BLK_IDX_MGMT_ROUTE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-88(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	$1, %r8d
	callq	_sja1105_dynamic_config_write
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	(%rax,%rcx,4), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dsa_enqueue_skb
	movl	$-10, %r12d
	leaq	-88(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_sja1105_dynamic_config_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	cmpl	$0, -88(%rbp)
	jne	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err_ratelimited
	cmpl	$0, -88(%rbp)
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree_skb
	jmp	LBB0_11
LBB0_8:
	testl	%r12d, %r12d
	jne	LBB0_10
LBB0_9:
	movl	(%r13), %esi
	leaq	-88(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%r8d, %r8d
	callq	_sja1105_dynamic_config_write
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err_ratelimited
LBB0_10:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_IDX_MGMT_ROUTE,4,2         ## @BLK_IDX_MGMT_ROUTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to poll for mgmt route\n"

L_.str.1:                               ## @.str.1
	.asciz	"xmit timed out\n"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_sja1105_mgmt_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_mgmt_xmit
_sja1105_mgmt_xmit:                     ; @sja1105_mgmt_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	str	xzr, [sp, #24]
	ldr	x20, [x0, #8]
	mov	x0, x3
	bl	_eth_hdr
	ldr	w0, [x0]
	bl	_ether_addr_to_u64
	str	w0, [sp, #20]
	mov	x0, x22
	bl	_BIT
	str	w0, [sp, #16]
	mov	w8, #1
	str	xzr, [sp, #8]
	stp	w8, w24, [sp]
Lloh0:
	adrp	x25, _BLK_IDX_MGMT_ROUTE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BLK_IDX_MGMT_ROUTE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x3, sp
	mov	x0, x20
	mov	x2, x19
	mov	w4, #1
	bl	_sja1105_dynamic_config_write
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x8, [x23]
	ldr	w1, [x8, w22, sxtw #2]
	mov	x0, x21
	bl	_dsa_enqueue_skb
	mov	w22, #-10
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x3, sp
	mov	x0, x20
	mov	x2, x19
	bl	_sja1105_dynamic_config_read
	tbnz	w0, #31, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cpu_relax
	ldr	w8, [sp]
	cbnz	w8, LBB0_5
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_dev_err_ratelimited
	ldr	w8, [sp]
	cbz	w8, LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	adds	w22, w22, #1
	b.lo	LBB0_2
	b	LBB0_8
LBB0_6:
	mov	x24, x0
	mov	x0, x21
	bl	_kfree_skb
	b	LBB0_10
LBB0_7:
	cbnz	w22, LBB0_9
LBB0_8:
	ldr	w1, [x25]
	mov	x3, sp
	mov	x0, x20
	mov	x2, x19
	mov	w4, #0
	bl	_sja1105_dynamic_config_write
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err_ratelimited
LBB0_9:
Lloh6:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_IDX_MGMT_ROUTE,4,2         ; @BLK_IDX_MGMT_ROUTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to poll for mgmt route\n"

l_.str.1:                               ; @.str.1
	.asciz	"xmit timed out\n"

	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_sja1105_mgmt_xmit
.subsections_via_symbols
