	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rzn1_hw_set_lock
_rzn1_hw_set_lock:                      ## @rzn1_hw_set_lock
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_LOCK_LEVEL1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %eax
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	testl	%r14d, %eax
	sete	%dil
	orl	(%r15), %edi
	movq	16(%r15), %rsi
	callq	_writel
LBB0_2:
	movq	_LOCK_LEVEL2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_3
## %bb.4:
	xorl	%edi, %edi
	testl	%r14d, %eax
	sete	%dil
	orl	4(%r15), %edi
	movq	8(%r15), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCK_LEVEL1,4,2                ## @LOCK_LEVEL1
	.comm	_LOCK_LEVEL2,4,2                ## @LOCK_LEVEL2
	.no_dead_strip	_rzn1_hw_set_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rzn1_hw_set_lock
_rzn1_hw_set_lock:                      ; @rzn1_hw_set_lock
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _LOCK_LEVEL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCK_LEVEL1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x19]
	tst	w8, w20
	cset	w8, eq
	orr	w0, w9, w8
	ldr	x1, [x19, #16]
	bl	_writel
LBB0_2:
Lloh3:
	adrp	x8, _LOCK_LEVEL2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOCK_LEVEL2@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x19, #4]
	tst	w8, w20
	cset	w8, eq
	orr	w0, w9, w8
	ldr	x1, [x19, #8]
	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	_writel
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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCK_LEVEL1,4,2                ; @LOCK_LEVEL1
	.comm	_LOCK_LEVEL2,4,2                ; @LOCK_LEVEL2
	.no_dead_strip	_rzn1_hw_set_lock
.subsections_via_symbols
