	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_phys_id
_niu_phys_id:                           ## @niu_phys_id
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_niu_led_state_save
	movl	%eax, %r14d
	leal	(%r15,%r15), %eax
	testl	%r15d, %r15d
	movl	$4, %r15d
	cmovnel	%eax, %r15d
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.3:
	decl	%r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	notl	%esi
	andl	$1, %esi
	movq	%r12, %rdi
	callq	_niu_force_led
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msleep_interruptible
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rbx), %eax
	cmpl	%ebx, %r15d
	movl	%eax, %ebx
	jne	LBB0_4
LBB0_6:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_niu_led_state_restore
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_niu_phys_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_phys_id
_niu_phys_id:                           ; @niu_phys_id
	.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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_niu_led_state_save
	mov	x20, x0
	lsl	w8, w21, #1
	mov	w9, #4
	cmp	w21, #0
	csel	w8, w9, w8, eq
	subs	w21, w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mvn	w8, w22
	and	w1, w8, #0x1
	mov	x0, x19
	bl	_niu_force_led
	mov	w0, #500
	bl	_msleep_interruptible
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w22, #1
	cmp	w21, w22
	mov	x22, x8
	b.ne	LBB0_3
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_niu_led_state_restore
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_niu_phys_id
.subsections_via_symbols
