	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_name_store
_device_name_store:                     ## @device_name_store
	.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	%rcx, %rbx
	movq	%rdx, %r13
	callq	_led_trigger_get_drvdata
	movq	%rax, %r15
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jbe	LBB0_1
## %bb.2:
	movq	%r15, %r14
	leaq	40(%r15), %rdi
	callq	_cancel_delayed_work_sync
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_dev_put
	movq	$0, 32(%r14)
LBB0_4:
	movq	(%r14), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	(%r14), %rax
	movb	$0, (%rax,%rbx)
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movq	(%r14), %rax
	cmpb	$10, -1(%rbx,%rax)
	jne	LBB0_7
## %bb.6:
	movb	$0, -1(%rax,%rbx)
LBB0_7:
	movq	(%r14), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_9
## %bb.8:
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_dev_get_by_name
	movq	%rax, 32(%r14)
LBB0_9:
	movq	_NETDEV_LED_MODE_LINKUP@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	addq	$24, %r15
	movq	%r15, %rsi
	callq	_clear_bit
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_set_bit
LBB0_12:
	movq	$0, 16(%r14)
	movq	%r14, %rdi
	callq	_set_baseline_state
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,8,3                   ## @IFNAMSIZ
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_init_net,4,2                   ## @init_net
	.comm	_NETDEV_LED_MODE_LINKUP,4,2     ## @NETDEV_LED_MODE_LINKUP
	.no_dead_strip	_device_name_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_name_store
_device_name_store:                     ; @device_name_store
	.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, x3
	mov	x22, x2
	bl	_led_trigger_get_drvdata
Lloh0:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_12
; %bb.1:
	mov	x20, x0
	add	x0, x0, #40
	bl	_cancel_delayed_work_sync
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_bh
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_dev_put
	str	xzr, [x20, #32]
LBB0_3:
	ldr	x0, [x20]
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [x20]
	strb	wzr, [x8, x19]
	cbz	x19, LBB0_6
; %bb.4:
	ldr	x8, [x20]
	sub	x9, x19, #1
	ldrb	w10, [x8, x9]
	cmp	w10, #10
	b.ne	LBB0_6
; %bb.5:
	strb	wzr, [x8, x9]
LBB0_6:
	ldr	x1, [x20]
	ldrb	w8, [x1]
	cbz	w8, LBB0_8
; %bb.7:
Lloh3:
	adrp	x0, _init_net@GOTPAGE
Lloh4:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_dev_get_by_name
	str	x0, [x20, #32]
LBB0_8:
Lloh5:
	adrp	x23, _NETDEV_LED_MODE_LINKUP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _NETDEV_LED_MODE_LINKUP@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x22, x20, #24
	mov	x1, x22
	bl	_clear_bit
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_11
; %bb.9:
	bl	_netif_carrier_ok
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x23]
	mov	x1, x22
	bl	_set_bit
LBB0_11:
	str	xzr, [x20, #16]
	mov	x0, x20
	bl	_set_baseline_state
	mov	x0, x21
	bl	_spin_unlock_bh
	b	LBB0_13
LBB0_12:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_13:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,8,3                   ; @IFNAMSIZ
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_init_net,4,2                   ; @init_net
	.comm	_NETDEV_LED_MODE_LINKUP,4,2     ; @NETDEV_LED_MODE_LINKUP
	.no_dead_strip	_device_name_store
.subsections_via_symbols
