	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipmi_open
_ipmi_open:                             ## @ipmi_open
	.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, %r14
	movq	%rdi, %r15
	callq	_iminor
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.1:
	movq	_ipmi_wdog_open@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	callq	_cycle_kernel_lock
	movq	_ipmi_start_timer_on_heartbeat@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nonseekable_open               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ipmi_wdog_open,4,2             ## @ipmi_wdog_open
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ipmi_start_timer_on_heartbeat,4,2 ## @ipmi_start_timer_on_heartbeat
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_ipmi_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipmi_open
_ipmi_open:                             ; @ipmi_open
	.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, x1
	mov	x20, x0
	bl	_iminor
	cmp	w0, #128
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, _ipmi_wdog_open@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ipmi_wdog_open@GOTPAGEOFF]
	mov	w0, #0
	bl	_test_and_set_bit
	cbz	w0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	_cycle_kernel_lock
Lloh6:
	adrp	x8, _ipmi_start_timer_on_heartbeat@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ipmi_start_timer_on_heartbeat@GOTPAGEOFF]
	mov	w9, #1
Lloh8:
	str	w9, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nonseekable_open
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ipmi_wdog_open,4,2             ; @ipmi_wdog_open
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ipmi_start_timer_on_heartbeat,4,2 ; @ipmi_start_timer_on_heartbeat
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_ipmi_open
.subsections_via_symbols
