	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca954x_irq_setup
_pca954x_irq_setup:                     ## @pca954x_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
	callq	_i2c_mux_priv
	movq	%rax, %r12
	movq	8(%rax), %rax
	xorl	%r14d, %r14d
	cmpl	$0, 4(%rax)
	je	LBB0_12
## %bb.1:
	movq	24(%r12), %r15
	cmpq	$0, (%r15)
	jle	LBB0_12
## %bb.2:
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_raw_spin_lock_init
	movl	8(%r15), %edi
	movq	8(%r12), %rax
	movl	(%rax), %esi
	movq	_irq_domain_simple_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	8(%r12), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_12
## %bb.4:
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_irq_create_mapping
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movl	%eax, %r13d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_irq_set_chip_data
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movq	_pca954x_irq_chip@GOTPCREL(%rip), %rsi
	callq	_irq_set_chip_and_handler
	movq	8(%r12), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_irq_create_mapping
	movl	%eax, %r13d
	incl	%ebx
	testl	%eax, %eax
	jne	LBB0_6
LBB0_9:
	addq	$8, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_11:
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_irq_domain_simple_ops,4,2      ## @irq_domain_simple_ops
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed irq create map\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pca954x_irq_chip,4,2           ## @pca954x_irq_chip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.no_dead_strip	_pca954x_irq_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca954x_irq_setup
_pca954x_irq_setup:                     ; @pca954x_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
	bl	_i2c_mux_priv
	ldr	x8, [x0, #8]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.2:
	add	x0, x19, #16
	bl	_raw_spin_lock_init
	ldr	w0, [x20, #8]!
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh0:
	adrp	x2, _irq_domain_simple_ops@GOTPAGE
Lloh1:
	ldr	x2, [x2, _irq_domain_simple_ops@GOTPAGEOFF]
	mov	x3, x19
	bl	_irq_domain_add_linear
	str	w0, [x19]
	cbz	w0, LBB0_10
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	w1, #0
	bl	_irq_create_mapping
	cbz	w0, LBB0_8
; %bb.5:
	mov	x23, x0
	mov	w21, #1
Lloh2:
	adrp	x24, _handle_simple_irq@GOTPAGE
Lloh3:
	ldr	x24, [x24, _handle_simple_irq@GOTPAGEOFF]
Lloh4:
	adrp	x22, _pca954x_irq_chip@GOTPAGE
Lloh5:
	ldr	x22, [x22, _pca954x_irq_chip@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x19
	bl	_irq_set_chip_data
	ldr	w2, [x24]
	mov	x0, x23
	mov	x1, x22
	bl	_irq_set_chip_and_handler
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19]
	mov	x1, x21
	bl	_irq_create_mapping
	mov	x23, x0
	add	w21, w21, #1
	cbnz	w0, LBB0_6
LBB0_8:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_irq_domain_simple_ops,4,2      ; @irq_domain_simple_ops
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed irq create map\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pca954x_irq_chip,4,2           ; @pca954x_irq_chip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.no_dead_strip	_pca954x_irq_setup
.subsections_via_symbols
