	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca_isa_probe
_pca_isa_probe:                         ## @pca_isa_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_pca_wait@GOTPCREL(%rip), %rdi
	callq	_init_waitqueue_head
	movq	_base@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_irq@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
	movl	(%r14), %edi
	movq	_IO_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r12), %edi
	testl	%edi, %edi
	js	LBB0_5
## %bb.3:
	movq	_pca_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	_pca_isa_ops@GOTPCREL(%rip), %r8
	xorl	%edx, %edx
	callq	_request_irq
	testq	%rax, %rax
	js	LBB0_4
LBB0_5:
	movq	_clock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_pca_isa_data@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_pca_isa_ops@GOTPCREL(%rip), %rdi
	callq	_i2c_pca_add_bus
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_10
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r12), %edi
	testl	%edi, %edi
	js	LBB0_8
## %bb.7:
	movq	_pca_isa_ops@GOTPCREL(%rip), %rsi
	callq	_free_irq
	jmp	LBB0_8
LBB0_1:
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_4:
	movl	(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_release_region
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pca_wait,4,2                   ## @pca_wait
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i/o base %#08lx. irq %d\n"

	.comm	_base,4,2                       ## @base
	.comm	_irq,4,2                        ## @irq
	.comm	_IO_SIZE,4,2                    ## @IO_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"i2c-pca-isa"

L_.str.2:                               ## @.str.2
	.asciz	"I/O address %#08lx is in use\n"

	.comm	_pca_handler,4,2                ## @pca_handler
	.comm	_pca_isa_ops,4,2                ## @pca_isa_ops
L_.str.3:                               ## @.str.3
	.asciz	"Request irq%d failed\n"

	.comm	_clock,4,2                      ## @clock
	.comm	_pca_isa_data,4,2               ## @pca_isa_data
L_.str.4:                               ## @.str.4
	.asciz	"Failed to add i2c bus\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_pca_isa_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca_isa_probe
_pca_isa_probe:                         ; @pca_isa_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _pca_wait@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pca_wait@GOTPAGEOFF]
	bl	_init_waitqueue_head
Lloh2:
	adrp	x20, _base@GOTPAGE
Lloh3:
	ldr	x20, [x20, _base@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh4:
	adrp	x22, _irq@GOTPAGE
Lloh5:
	ldr	x22, [x22, _irq@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w0, [x20]
Lloh8:
	adrp	x21, _IO_SIZE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _IO_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_request_region
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x22]
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _pca_handler@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pca_handler@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x3, l_.str.1@PAGE
Lloh16:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh17:
	adrp	x4, _pca_isa_ops@GOTPAGE
Lloh18:
	ldr	x4, [x4, _pca_isa_ops@GOTPAGEOFF]
	mov	w2, #0
	bl	_request_irq
	tbnz	x0, #63, LBB0_8
LBB0_3:
Lloh19:
	adrp	x8, _clock@GOTPAGE
Lloh20:
	ldr	x8, [x8, _clock@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _pca_isa_data@GOTPAGE
Lloh23:
	ldr	x9, [x9, _pca_isa_data@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
Lloh25:
	adrp	x0, _pca_isa_ops@GOTPAGE
Lloh26:
	ldr	x0, [x0, _pca_isa_ops@GOTPAGEOFF]
	bl	_i2c_pca_add_bus
	tbnz	x0, #63, LBB0_6
; %bb.4:
	mov	w0, #0
	b	LBB0_11
LBB0_5:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_6:
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x22]
	tbnz	w0, #31, LBB0_9
; %bb.7:
Lloh31:
	adrp	x1, _pca_isa_ops@GOTPAGE
Lloh32:
	ldr	x1, [x1, _pca_isa_ops@GOTPAGEOFF]
	bl	_free_irq
	b	LBB0_9
LBB0_8:
	ldr	w8, [x22]
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_release_region
LBB0_10:
Lloh35:
	adrp	x8, _ENODEV@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_pca_wait,4,2                   ; @pca_wait
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i/o base %#08lx. irq %d\n"

	.comm	_base,4,2                       ; @base
	.comm	_irq,4,2                        ; @irq
	.comm	_IO_SIZE,4,2                    ; @IO_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"i2c-pca-isa"

l_.str.2:                               ; @.str.2
	.asciz	"I/O address %#08lx is in use\n"

	.comm	_pca_handler,4,2                ; @pca_handler
	.comm	_pca_isa_ops,4,2                ; @pca_isa_ops
l_.str.3:                               ; @.str.3
	.asciz	"Request irq%d failed\n"

	.comm	_clock,4,2                      ; @clock
	.comm	_pca_isa_data,4,2               ; @pca_isa_data
l_.str.4:                               ; @.str.4
	.asciz	"Failed to add i2c bus\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_pca_isa_probe
.subsections_via_symbols
