	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_set_hwtstamp_config
_mv88e6xxx_set_hwtstamp_config:         ## @mv88e6xxx_set_hwtstamp_config
	.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, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movslq	%esi, %rbx
	movq	_MV88E6XXX_HWTSTAMP_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shlq	$2, %rbx
	addq	8(%r15), %rbx
	movq	%rbx, %rsi
	callq	_clear_bit_unlock
	cmpq	$0, 8(%r12)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r12), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_19
## %bb.6:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_4:
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_7:
	movl	4(%r12), %edi
	callq	_BIT
	testl	%eax, (%r13)
	je	LBB0_8
## %bb.9:
	movl	4(%r12), %eax
	leal	-130(%rax), %ecx
	cmpl	$9, %ecx
	jae	LBB0_10
## %bb.20:
	movl	$137, 4(%r12)
	movq	%r15, %rdi
	callq	_mv88e6xxx_reg_lock
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_21
LBB0_12:
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	*%rax
LBB0_14:
	decl	(%r15)
	jne	LBB0_17
## %bb.15:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	*%rax
LBB0_17:
	movq	%r15, %rdi
	callq	_mv88e6xxx_reg_unlock
	jmp	LBB0_27
LBB0_8:
	movl	$139, 4(%r12)
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	$139, %edx
	callq	_dev_dbg
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_21:
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	testl	%eax, %eax
	jne	LBB0_24
## %bb.22:
	movq	32(%r13), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	*%rax
LBB0_24:
	movq	24(%r13), %rax
	testq	%rax, %rax
	movq	_MV88E6XXX_HWTSTAMP_ENABLED@GOTPCREL(%rip), %r12
	je	LBB0_26
## %bb.25:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	*%rax
LBB0_26:
	movq	%r15, %rdi
	callq	_mv88e6xxx_reg_unlock
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_set_bit
LBB0_27:
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_10:
	cmpl	$139, %eax
	jne	LBB0_18
## %bb.11:
	movq	%r15, %rdi
	callq	_mv88e6xxx_reg_lock
	jmp	LBB0_12
LBB0_18:
	movl	$139, 4(%r12)
LBB0_19:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_HWTSTAMP_ENABLED,4,2 ## @MV88E6XXX_HWTSTAMP_ENABLED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ERANGE,4,2                     ## @ERANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported rx_filter %d\n"

	.no_dead_strip	_mv88e6xxx_set_hwtstamp_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_set_hwtstamp_config
_mv88e6xxx_set_hwtstamp_config:         ; @mv88e6xxx_set_hwtstamp_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldp	x9, x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x23, [x8]
Lloh0:
	adrp	x24, _MV88E6XXX_HWTSTAMP_ENABLED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MV88E6XXX_HWTSTAMP_ENABLED@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x21, x9, w1, sxtw #2
	mov	x1, x21
	bl	_clear_bit_unlock
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	ldr	w8, [x22]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_16
; %bb.4:
	mov	w25, #0
	b	LBB0_6
LBB0_5:
	mov	w25, #1
LBB0_6:
	ldr	w0, [x22, #4]
	bl	_BIT
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_15
; %bb.7:
	ldr	w8, [x22, #4]
	sub	w9, w8, #130
	cmp	w9, #9
	b.hs	LBB0_26
; %bb.8:
	mov	w8, #137
	str	w8, [x22, #4]
	mov	x0, x19
	bl	_mv88e6xxx_reg_lock
	tbz	w25, #0, LBB0_19
; %bb.9:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_11:
	ldr	w8, [x19]
	subs	w8, w8, #1
	str	w8, [x19]
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	blr	x8
LBB0_14:
	mov	x0, x19
	bl	_mv88e6xxx_reg_unlock
	b	LBB0_25
LBB0_15:
	mov	w8, #139
	str	w8, [x22, #4]
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #139
	bl	_dev_dbg
LBB0_16:
Lloh6:
	adrp	x8, _ERANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	cbnz	w8, LBB0_22
; %bb.20:
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_22
; %bb.21:
	mov	x0, x19
	blr	x8
LBB0_22:
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_24
; %bb.23:
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_24:
	mov	x0, x19
	bl	_mv88e6xxx_reg_unlock
	ldr	w0, [x24]
	mov	x1, x21
	bl	_set_bit
LBB0_25:
	mov	w0, #0
	b	LBB0_18
LBB0_26:
	cmp	w8, #139
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x19
	bl	_mv88e6xxx_reg_lock
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_10
	b	LBB0_11
LBB0_28:
	mov	w8, #139
	str	w8, [x22, #4]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_HWTSTAMP_ENABLED,4,2 ; @MV88E6XXX_HWTSTAMP_ENABLED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ERANGE,4,2                     ; @ERANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported rx_filter %d\n"

	.no_dead_strip	_mv88e6xxx_set_hwtstamp_config
.subsections_via_symbols
