	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws16c48_irq_ack
_ws16c48_irq_ack:                       ## @ws16c48_irq_ack
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_irqd_to_hwirq
	movq	%rax, %rbx
	shrq	$3, %rbx
	andl	$7, %eax
	movq	%rax, %rdi
	callq	_BIT
	cmpl	$2, %ebx
	jbe	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%eax, %r15d
	movq	%r12, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_raw_spin_lock_irqsave
	movl	(%r12), %r13d
	leal	(,%rbx,8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r13d
	movq	8(%r12), %rsi
	addq	$7, %rsi
	movl	$128, %edi
	callq	_outb
	movl	%r15d, %edi
	notl	%edi
	andl	%r13d, %edi
	movl	%ebx, %ebx
	addq	$8, %rbx
	movq	8(%r12), %rsi
	addq	%rbx, %rsi
	callq	_outb
	orl	%r15d, %r13d
	addq	8(%r12), %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_outb
	movq	8(%r12), %rsi
	addq	$7, %rsi
	movl	$192, %edi
	callq	_outb
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_raw_spin_unlock_irqrestore     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ws16c48_irq_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ws16c48_irq_ack
_ws16c48_irq_ack:                       ; @ws16c48_irq_ack
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	mov	x19, x0
	mov	x0, x20
	bl	_irqd_to_hwirq
	mov	x20, x0
	lsr	x23, x0, #3
	and	x0, x0, #0x7
	bl	_BIT
	cmp	w23, #2
	b.ls	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x21, x0
	add	x22, x19, #4
	mov	x0, x22
	bl	_raw_spin_lock_irqsave
	ldr	w8, [x19]
	lsl	w9, w23, #3
	asr	w23, w8, w9
	ldr	x8, [x19, #8]
	add	x1, x8, #7
	mov	w0, #128
	bl	_outb
	bic	w0, w23, w21
	ldr	x8, [x19, #8]
	ubfx	x9, x20, #3, #32
	add	x20, x9, #8
	add	x1, x20, x8
	bl	_outb
	orr	w0, w23, w21
	ldr	x8, [x19, #8]
	add	x1, x20, x8
	bl	_outb
	ldr	x8, [x19, #8]
	add	x1, x8, #7
	mov	w0, #192
	bl	_outb
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_raw_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ws16c48_irq_ack
.subsections_via_symbols
