	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idi_48_irq_unmask
_idi_48_irq_unmask:                     ## @idi_48_irq_unmask
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_irqd_to_hwirq
	xorl	%ebx, %ebx
	cmpl	$8, %eax
	jb	LBB0_6
## %bb.1:
	movl	$8, %ebx
	cmpl	$16, %eax
	jb	LBB0_6
## %bb.2:
	movl	$16, %ebx
	cmpl	$24, %eax
	jb	LBB0_6
## %bb.3:
	movl	$24, %ebx
	cmpl	$32, %eax
	jb	LBB0_6
## %bb.4:
	movl	$32, %ebx
	cmpl	$40, %eax
	jb	LBB0_6
## %bb.5:
	movl	$40, %ebx
	cmpl	$47, %eax
	ja	LBB0_7
LBB0_6:
	subl	%ebx, %eax
	movl	%eax, %edi
	callq	_BIT
	shrl	$3, %ebx
	movq	(%r14), %rcx
	movl	(%rcx,%rbx,4), %edx
	orl	%edx, %eax
	movl	%eax, (%rcx,%rbx,4)
	testl	%edx, %edx
	je	LBB0_8
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, 8(%r14)
	movq	%r14, %rbx
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_raw_spin_lock_irqsave
	movl	8(%r14), %edi
	movq	16(%r14), %rsi
	addq	$7, %rsi
	callq	_outb
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_raw_spin_unlock_irqrestore     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_idi_48_irq_unmask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idi_48_irq_unmask
_idi_48_irq_unmask:                     ; @idi_48_irq_unmask
	.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	x20, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	mov	x19, x0
	mov	x0, x20
	bl	_irqd_to_hwirq
	cmp	w0, #8
	b.hs	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_12
LBB0_2:
	cmp	w0, #16
	b.hs	LBB0_4
; %bb.3:
	mov	w20, #8
	b	LBB0_12
LBB0_4:
	cmp	w0, #24
	b.hs	LBB0_6
; %bb.5:
	mov	w20, #16
	b	LBB0_12
LBB0_6:
	cmp	w0, #32
	b.hs	LBB0_8
; %bb.7:
	mov	w20, #24
	b	LBB0_12
LBB0_8:
	cmp	w0, #40
	b.hs	LBB0_10
; %bb.9:
	mov	w20, #32
	b	LBB0_12
LBB0_10:
	cmp	w0, #47
	b.hi	LBB0_13
; %bb.11:
	mov	w20, #40
LBB0_12:
	sub	w0, w0, w20
	bl	_BIT
	mov	x8, x0
	lsr	w0, w20, #3
	ldr	x9, [x19]
	lsl	x10, x0, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	cbz	w11, LBB0_14
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_BIT
	ldr	w8, [x19, #8]
	orr	w8, w8, w0
	str	w8, [x19, #8]
	add	x20, x19, #12
	mov	x0, x20
	bl	_raw_spin_lock_irqsave
	ldr	w0, [x19, #8]
	ldr	x8, [x19, #16]
	add	x1, x8, #7
	bl	_outb
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_raw_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_idi_48_irq_unmask
.subsections_via_symbols
