	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siena_ptp_set_ts_config
_siena_ptp_set_ts_config:               ## @siena_ptp_set_ts_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_5
## %bb.1:
	leal	-131(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_2
## %bb.4:
	movl	$132, (%rsi)
	movq	_MC_CMD_PTP_MODE_V1@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movl	$129, (%rsi)
	movq	_MC_CMD_PTP_MODE_V2_ENHANCED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_efx_ptp_change_mode
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	_MC_CMD_PTP_MODE_V2@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_efx_ptp_change_mode            ## TAILCALL
LBB0_2:
	cmpl	$134, %eax
	jne	LBB0_10
## %bb.3:
	movl	4(%rsi), %eax
	movq	_HWTSTAMP_TX_OFF@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	setne	%r14b
	movq	%rbx, %rdi
	callq	_efx_ptp_get_mode
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_10:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWTSTAMP_TX_OFF,4,2            ## @HWTSTAMP_TX_OFF
	.comm	_MC_CMD_PTP_MODE_V1,4,2         ## @MC_CMD_PTP_MODE_V1
	.comm	_MC_CMD_PTP_MODE_V2_ENHANCED,4,2 ## @MC_CMD_PTP_MODE_V2_ENHANCED
	.comm	_MC_CMD_PTP_MODE_V2,4,2         ## @MC_CMD_PTP_MODE_V2
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_siena_ptp_set_ts_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siena_ptp_set_ts_config
_siena_ptp_set_ts_config:               ; @siena_ptp_set_ts_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x1]
	sub	w9, w8, #128
	cmp	w9, #3
	b.lo	LBB0_3
; %bb.1:
	sub	w9, w8, #131
	cmp	w9, #3
	b.hs	LBB0_7
; %bb.2:
	mov	w8, #132
	str	w8, [x1]
Lloh0:
	adrp	x8, _MC_CMD_PTP_MODE_V1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC_CMD_PTP_MODE_V1@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w8, #129
	str	w8, [x1]
Lloh2:
	adrp	x8, _MC_CMD_PTP_MODE_V2_ENHANCED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MC_CMD_PTP_MODE_V2_ENHANCED@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_efx_ptp_change_mode
	cbz	w0, LBB0_10
; %bb.4:
Lloh5:
	adrp	x8, _MC_CMD_PTP_MODE_V2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MC_CMD_PTP_MODE_V2@GOTPAGEOFF]
LBB0_5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_efx_ptp_change_mode
LBB0_7:
	cmp	w8, #134
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x1, #4]
Lloh7:
	adrp	x9, _HWTSTAMP_TX_OFF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HWTSTAMP_TX_OFF@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w20, ne
	mov	x0, x19
	bl	_efx_ptp_get_mode
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	b	LBB0_6
LBB0_9:
Lloh10:
	adrp	x8, _ERANGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HWTSTAMP_TX_OFF,4,2            ; @HWTSTAMP_TX_OFF
	.comm	_MC_CMD_PTP_MODE_V1,4,2         ; @MC_CMD_PTP_MODE_V1
	.comm	_MC_CMD_PTP_MODE_V2_ENHANCED,4,2 ; @MC_CMD_PTP_MODE_V2_ENHANCED
	.comm	_MC_CMD_PTP_MODE_V2,4,2         ; @MC_CMD_PTP_MODE_V2
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_siena_ptp_set_ts_config
.subsections_via_symbols
