	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp23s08_irq_setup
_mcp23s08_irq_setup:                    ## @mcp23s08_irq_setup
	.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, %r14
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	orq	(%rax), %rbx
	cmpq	$0, 8(%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
LBB0_3:
	orq	(%rax), %rbx
	movl	(%r14), %r15d
	movl	16(%r14), %r12d
	movq	_mcp23s08_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r12d, %edi
	callq	_dev_name
	movq	%r14, (%rsp)
	movl	%r12d, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	movq	%rbx, %r8
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edx
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.comm	_IRQF_TRIGGER_HIGH,8,3          ## @IRQF_TRIGGER_HIGH
	.comm	_IRQF_TRIGGER_LOW,8,3           ## @IRQF_TRIGGER_LOW
	.comm	_mcp23s08_irq,4,2               ## @mcp23s08_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to request IRQ#%d: %d\n"

	.no_dead_strip	_mcp23s08_irq_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp23s08_irq_setup
_mcp23s08_irq_setup:                    ; @mcp23s08_irq_setup
	.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	x19, x0
Lloh0:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh6:
	adrp	x9, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
	ldr	x10, [x0, #8]
Lloh8:
	adrp	x11, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh9:
	ldr	x11, [x11, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
	cmp	x10, #0
	csel	x9, x9, x11, eq
	ldr	x9, [x9]
	orr	x20, x8, x9
	ldr	w21, [x0, #16]
	ldr	w22, [x0]
Lloh10:
	adrp	x8, _mcp23s08_irq@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mcp23s08_irq@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_dev_name
	mov	x5, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	mov	x3, x23
	mov	x4, x20
	mov	x6, x19
	bl	_devm_request_threaded_irq
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	ldr	w2, [x19]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_dev_err
LBB0_2:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.comm	_IRQF_TRIGGER_HIGH,8,3          ; @IRQF_TRIGGER_HIGH
	.comm	_IRQF_TRIGGER_LOW,8,3           ; @IRQF_TRIGGER_LOW
	.comm	_mcp23s08_irq,4,2               ; @mcp23s08_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to request IRQ#%d: %d\n"

	.no_dead_strip	_mcp23s08_irq_setup
.subsections_via_symbols
