	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_set_pauseparam
_bnxt_set_pauseparam:                   ## @bnxt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BNXT_SINGLE_PF
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpq	$0, 16(%r15)
	movl	4(%rbx), %eax
	je	LBB0_8
## %bb.4:
	movq	_BNXT_AUTONEG_SPEED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.6:
	movq	_BNXT_AUTONEG_FLOW_CTRL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rbx)
	cmpl	$66049, (%rbx)                  ## imm = 0x10201
	jl	LBB0_12
## %bb.7:
	movq	_PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_8:
	movq	_BNXT_AUTONEG_FLOW_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_10
## %bb.9:
	movl	$1, 8(%rbx)
LBB0_10:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_11:
	movl	%eax, 12(%rbx)
LBB0_12:
	cmpq	$0, 8(%r15)
	je	LBB0_14
## %bb.13:
	movq	_BNXT_LINK_PAUSE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
LBB0_14:
	cmpq	$0, (%r15)
	je	LBB0_16
## %bb.15:
	movq	_BNXT_LINK_PAUSE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
LBB0_16:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnxt_hwrm_set_pause            ## TAILCALL
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_BNXT_AUTONEG_SPEED,4,2         ## @BNXT_AUTONEG_SPEED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BNXT_AUTONEG_FLOW_CTRL,4,2     ## @BNXT_AUTONEG_FLOW_CTRL
	.comm	_PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE,4,2 ## @PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE
	.comm	_BNXT_LINK_PAUSE_RX,4,2         ## @BNXT_LINK_PAUSE_RX
	.comm	_BNXT_LINK_PAUSE_TX,4,2         ## @BNXT_LINK_PAUSE_TX
	.no_dead_strip	_bnxt_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_set_pauseparam
_bnxt_set_pauseparam:                   ; @bnxt_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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_BNXT_SINGLE_PF
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x9, [x21, #16]
	ldr	w8, [x19, #4]
	cbz	x9, LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, _BNXT_AUTONEG_SPEED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNXT_AUTONEG_SPEED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.3:
Lloh3:
	adrp	x9, _BNXT_AUTONEG_FLOW_CTRL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNXT_AUTONEG_FLOW_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	ldr	w8, [x19]
	mov	w9, #513
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_10
; %bb.4:
Lloh6:
	adrp	x8, _PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	b	LBB0_9
LBB0_5:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_17
LBB0_6:
Lloh11:
	adrp	x9, _BNXT_AUTONEG_FLOW_CTRL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BNXT_AUTONEG_FLOW_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x9]
	tst	w10, w8
	b.eq	LBB0_8
; %bb.7:
	mov	w9, #1
	str	w9, [x19, #8]
LBB0_8:
	mov	w9, #0
	bic	w8, w8, w10
	str	w8, [x19, #4]
LBB0_9:
	str	w9, [x19, #12]
LBB0_10:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh14:
	adrp	x8, _BNXT_LINK_PAUSE_RX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BNXT_LINK_PAUSE_RX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_12:
	ldr	x8, [x21]
	cbz	x8, LBB0_14
; %bb.13:
Lloh17:
	adrp	x8, _BNXT_LINK_PAUSE_TX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BNXT_LINK_PAUSE_TX@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_14:
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_18
; %bb.15:
	mov	x0, x19
	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
	b	_bnxt_hwrm_set_pause
LBB0_16:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_BNXT_AUTONEG_SPEED,4,2         ; @BNXT_AUTONEG_SPEED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BNXT_AUTONEG_FLOW_CTRL,4,2     ; @BNXT_AUTONEG_FLOW_CTRL
	.comm	_PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE,4,2 ; @PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE
	.comm	_BNXT_LINK_PAUSE_RX,4,2         ; @BNXT_LINK_PAUSE_RX
	.comm	_BNXT_LINK_PAUSE_TX,4,2         ; @BNXT_LINK_PAUSE_TX
	.no_dead_strip	_bnxt_set_pauseparam
.subsections_via_symbols
