	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_hrtbt_enb
_store_hrtbt_enb:                       ## @store_hrtbt_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
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	movl	-20(%rbp), %edx
	cmpl	$4, %edx
	cmovll	%eax, %ebx
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movq	_IPATH_IB_CFG_HRTBT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	*(%r14)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	-20(%rbp), %ecx
	movq	_IPATH_IB_HRTBT_OFF@GOTPCREL(%rip), %rdx
	movq	_IPATH_NO_HRTBT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_6
## %bb.5:
	orl	%eax, 8(%r14)
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ipath_dev_err
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_6:
	notl	%eax
	andl	%eax, 8(%r14)
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempt to set invalid Heartbeat enable\n"

	.comm	_IPATH_IB_CFG_HRTBT,4,2         ## @IPATH_IB_CFG_HRTBT
	.comm	_IPATH_IB_HRTBT_OFF,4,2         ## @IPATH_IB_HRTBT_OFF
	.comm	_IPATH_NO_HRTBT,4,2             ## @IPATH_NO_HRTBT
	.no_dead_strip	_store_hrtbt_enb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_hrtbt_enb
_store_hrtbt_enb:                       ; @store_hrtbt_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
	ldr	w2, [sp, #12]
	cmp	w2, #3
	mov	w8, #-1
	ccmp	w0, w8, #4, gt
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	csneg	w20, w0, w8, le
	tbnz	w20, #31, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _IPATH_IB_CFG_HRTBT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPATH_IB_CFG_HRTBT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _IPATH_IB_HRTBT_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPATH_IB_HRTBT_OFF@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh8:
	ldr	w10, [x8]
Lloh9:
	adrp	x8, _IPATH_NO_HRTBT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPATH_NO_HRTBT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.3:
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ipath_dev_err
	b	LBB0_8
LBB0_5:
	mov	x20, x0
	b	LBB0_8
LBB0_6:
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_7:
	str	w8, [x19, #8]
LBB0_8:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempt to set invalid Heartbeat enable\n"

	.comm	_IPATH_IB_CFG_HRTBT,4,2         ; @IPATH_IB_CFG_HRTBT
	.comm	_IPATH_IB_HRTBT_OFF,4,2         ; @IPATH_IB_HRTBT_OFF
	.comm	_IPATH_NO_HRTBT,4,2             ; @IPATH_NO_HRTBT
	.no_dead_strip	_store_hrtbt_enb
.subsections_via_symbols
