	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca953x_check_register
_pca953x_check_register:                ## @pca953x_check_register
	.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
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_pca953x_bank_shift
	movq	_REG_ADDR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%r12d, %ebx
	movl	%eax, %ecx
	shrl	%cl, %ebx
	movl	%eax, %edi
	callq	_BIT
	movl	%eax, %r13d
	movq	_REG_ADDR_EXT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_PCA_PCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.2:
	addl	$8, %ebx
LBB0_3:
	movl	%ebx, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_6
## %bb.4:
	decl	%r13d
	andl	%r12d, %r13d
	movq	%r14, %rdi
	callq	_NBANK
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r13d
	setl	%al
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_ADDR_MASK,4,2              ## @REG_ADDR_MASK
	.comm	_REG_ADDR_EXT,4,2               ## @REG_ADDR_EXT
	.comm	_PCA_PCAL,4,2                   ## @PCA_PCAL
	.no_dead_strip	_pca953x_check_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca953x_check_register
_pca953x_check_register:                ; @pca953x_check_register
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_pca953x_bank_shift
Lloh0:
	adrp	x8, _REG_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_ADDR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w20
	lsr	w23, w8, w0
	bl	_BIT
	mov	x22, x0
Lloh3:
	adrp	x8, _REG_ADDR_EXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_ADDR_EXT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _PCA_PCAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCA_PCAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	add	w23, w23, #8
LBB0_3:
	mov	x0, x23
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_5
; %bb.4:
	sub	w8, w22, #1
	and	w20, w8, w20
	mov	x0, x19
	bl	_NBANK
	cmp	w20, w0
	cset	w0, lt
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_ADDR_MASK,4,2              ; @REG_ADDR_MASK
	.comm	_REG_ADDR_EXT,4,2               ; @REG_ADDR_EXT
	.comm	_PCA_PCAL,4,2                   ; @PCA_PCAL
	.no_dead_strip	_pca953x_check_register
.subsections_via_symbols
