	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_rx_polinv_enb
_store_rx_polinv_enb:                   ## @store_rx_polinv_enb
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ipath_parse_ushort
	movl	%eax, %ebx
	movl	-20(%rbp), %edx
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.1:
	cmpl	$2, %edx
	jl	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ipath_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_3:
	movq	_IPATH_IB_CFG_RXPOL_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	*(%r14)
	testl	%eax, %eax
	cmovsl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempt to set invalid Rx Polarity (enable)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPATH_IB_CFG_RXPOL_ENB,4,2     ## @IPATH_IB_CFG_RXPOL_ENB
	.no_dead_strip	_store_rx_polinv_enb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_rx_polinv_enb
_store_rx_polinv_enb:                   ; @store_rx_polinv_enb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x2
	bl	_dev_get_drvdata
	mov	x19, x0
	add	x1, sp, #12
	mov	x0, x20
	bl	_ipath_parse_ushort
	mov	x20, x0
	ldr	w2, [sp, #12]
	tbnz	w20, #31, LBB0_3
; %bb.1:
	cmp	w2, #2
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ipath_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _IPATH_IB_CFG_RXPOL_ENB@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPATH_IB_CFG_RXPOL_ENB@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	cmp	w0, #0
	csel	w0, w0, w20, lt
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempt to set invalid Rx Polarity (enable)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPATH_IB_CFG_RXPOL_ENB,4,2     ; @IPATH_IB_CFG_RXPOL_ENB
	.no_dead_strip	_store_rx_polinv_enb
.subsections_via_symbols
