	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ionic_set_pauseparam
_ionic_set_pauseparam:                  ## @ionic_set_pauseparam
	.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
	movq	%rsi, %rbx
	callq	_netdev_priv
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movq	%rax, %r15
	movq	_IONIC_PORT_PAUSE_TYPE_LINK@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	movl	$0, %r12d
	je	LBB0_4
## %bb.3:
	movq	_IONIC_PAUSE_F_RX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
LBB0_4:
	orl	(%rcx), %r12d
	movq	(%r15), %r14
	cmpq	$0, (%rbx)
	movl	$0, %ecx
	je	LBB0_6
## %bb.5:
	movq	_IONIC_PAUSE_F_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	orl	%ecx, %r12d
	movq	8(%r14), %rcx
	cmpl	(%rcx), %r12d
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rdi
	addq	$8, %rdi
	movl	%r12d, %esi
	callq	_ionic_dev_cmd_port_pause
	movq	_DEVCMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ionic_dev_cmd_wait
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IONIC_PORT_PAUSE_TYPE_LINK,4,2 ## @IONIC_PORT_PAUSE_TYPE_LINK
	.comm	_IONIC_PAUSE_F_RX,4,2           ## @IONIC_PAUSE_F_RX
	.comm	_IONIC_PAUSE_F_TX,4,2           ## @IONIC_PAUSE_F_TX
	.comm	_DEVCMD_TIMEOUT,4,2             ## @DEVCMD_TIMEOUT
	.no_dead_strip	_ionic_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ionic_set_pauseparam
_ionic_set_pauseparam:                  ; @ionic_set_pauseparam
	.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
	bl	_netdev_priv
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x20, x0
	mov	w0, #0
	ldr	x19, [x20]
Lloh3:
	adrp	x8, _IONIC_PORT_PAUSE_TYPE_LINK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IONIC_PORT_PAUSE_TYPE_LINK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	x10, x9, [x21]
	cmp	x9, #0
Lloh6:
	adrp	x9, _IONIC_PAUSE_F_RX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IONIC_PAUSE_F_RX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _IONIC_PAUSE_F_TX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IONIC_PAUSE_F_TX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w21, w8, w9
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	add	x0, x8, #8
	mov	x1, x21
	bl	_ionic_dev_cmd_port_pause
Lloh12:
	adrp	x8, _DEVCMD_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEVCMD_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ionic_dev_cmd_wait
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IONIC_PORT_PAUSE_TYPE_LINK,4,2 ; @IONIC_PORT_PAUSE_TYPE_LINK
	.comm	_IONIC_PAUSE_F_RX,4,2           ; @IONIC_PAUSE_F_RX
	.comm	_IONIC_PAUSE_F_TX,4,2           ; @IONIC_PAUSE_F_TX
	.comm	_DEVCMD_TIMEOUT,4,2             ; @DEVCMD_TIMEOUT
	.no_dead_strip	_ionic_set_pauseparam
.subsections_via_symbols
