	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __set_phy_state
___set_phy_state:                       ## @__set_phy_state
	.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
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rsi), %rax
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	movq	(%rax,%rcx,8), %r12
	movq	(%rax,%rdx,8), %r15
	movq	%rsi, %rdi
	callq	_spin_lock
	testl	%r13d, %r13d
	je	LBB0_1
## %bb.4:
	movl	32(%rbx), %ecx
	movl	36(%rbx), %esi
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	24(%rbx), %ecx
	movl	28(%rbx), %esi
	movq	%r12, %rdi
	movl	%ecx, %edx
	jmp	LBB0_5
LBB0_1:
	movq	16(%rbx), %rax
	movq	8(%r14), %rcx
	movq	(%rcx,%rax,8), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
LBB0_3:
	movl	32(%rbx), %edx
	movl	36(%rbx), %esi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
LBB0_5:
	callq	_regmap_update_bits
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___set_phy_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __set_phy_state
___set_phy_state:                       ; @__set_phy_state
	.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	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
	ldp	x9, x10, [x0]
	ldr	x22, [x8, x9, lsl #3]
	ldr	x21, [x8, x10, lsl #3]
	mov	x0, x1
	bl	_spin_lock
	cbz	w23, LBB0_2
; %bb.1:
	ldp	w2, w1, [x20, #32]
	mov	x0, x21
	mov	x3, x2
	bl	_regmap_update_bits
	ldp	w2, w1, [x20, #24]
	mov	x0, x22
	mov	x3, x2
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #8]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
; %bb.3:
	ldp	w2, w1, [x20, #24]
	mov	x0, x22
	mov	w3, #0
	bl	_regmap_update_bits
LBB0_4:
	ldp	w2, w1, [x20, #32]
	mov	x0, x21
	mov	w3, #0
LBB0_5:
	bl	_regmap_update_bits
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___set_phy_state
.subsections_via_symbols
