	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fiq_claim                      ## -- Begin function fiq_claim
	.p2align	4, 0x90
_fiq_claim:                             ## @fiq_claim
	.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
	cmpl	$257, (%rdi)                    ## imm = 0x101
	jl	LBB0_2
## %bb.1:
	movq	_EFBIG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	movq	%rdi, %rbx
	movq	_PSR_F@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_disable_interrupts
	movl	%eax, %r14d
	movq	_fiqhandler_stack@GOTPCREL(%rip), %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_FH_CANPUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_4
## %bb.5:
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_fiq_getregs
LBB0_7:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_fiq_setregs
LBB0_9:
	movq	_fh_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fiqhandler_stack@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	movl	(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_fiq_installhandler
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movl	%r14d, %edi
	callq	_restore_interrupts
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFBIG,4,2                      ## @EFBIG
	.comm	_PSR_F,4,2                      ## @PSR_F
	.comm	_fiqhandler_stack,4,2           ## @fiqhandler_stack
	.comm	_FH_CANPUSH,4,2                 ## @FH_CANPUSH
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_fh_list,4,2                    ## @fh_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fiq_claim                      ; -- Begin function fiq_claim
	.p2align	2
_fiq_claim:                             ; @fiq_claim
	.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
	ldr	w8, [x0]
	cmp	w8, #257
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EFBIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFBIG@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_2:
	mov	x20, x0
Lloh3:
	adrp	x21, _PSR_F@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PSR_F@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_disable_interrupts
	mov	x19, x0
Lloh5:
	adrp	x0, _fiqhandler_stack@GOTPAGE
Lloh6:
	ldr	x0, [x0, _fiqhandler_stack@GOTPAGEOFF]
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w8, [x0, #4]
Lloh7:
	adrp	x9, _FH_CANPUSH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FH_CANPUSH@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.4:
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_fiq_getregs
LBB0_6:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_fiq_setregs
LBB0_8:
Lloh10:
	adrp	x8, _fh_list@GOTPAGE
Lloh11:
	ldr	x8, [x8, _fh_list@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x0, _fiqhandler_stack@GOTPAGE
Lloh14:
	ldr	x0, [x0, _fiqhandler_stack@GOTPAGEOFF]
	mov	x1, x20
	bl	_TAILQ_INSERT_HEAD
	ldr	w0, [x20, #8]
	ldr	w1, [x20]
	bl	_fiq_installhandler
	mov	w20, #0
	ldr	w8, [x21]
	bic	w19, w19, w8
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
LBB0_10:
	mov	x0, x19
	bl	_restore_interrupts
LBB0_11:
	mov	x0, x20
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EFBIG,4,2                      ; @EFBIG
	.comm	_PSR_F,4,2                      ; @PSR_F
	.comm	_fiqhandler_stack,4,2           ; @fiqhandler_stack
	.comm	_FH_CANPUSH,4,2                 ; @FH_CANPUSH
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_fh_list,4,2                    ; @fh_list
.subsections_via_symbols
