	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_setup
_wacom_setup:                           ## @wacom_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_REQUEST_MODEL_AND_ROM_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_wacom_send_and_wait
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
LBB0_3:
	movq	_REQUEST_CONFIGURATION_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wacom_send_and_wait
	testl	%eax, %eax
	jne	LBB0_7
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	cmpq	$0, (%rbx)
	jne	LBB0_8
LBB0_6:
	movq	_REQUEST_MAX_COORDINATES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wacom_send_and_wait
	testl	%eax, %eax
	jne	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wacom_send_setup_string        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REQUEST_MODEL_AND_ROM_VERSION,4,2 ## @REQUEST_MODEL_AND_ROM_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"model and version"

	.comm	_REQUEST_CONFIGURATION_STRING,4,2 ## @REQUEST_CONFIGURATION_STRING
L_.str.1:                               ## @.str.1
	.asciz	"configuration string"

	.comm	_REQUEST_MAX_COORDINATES,4,2    ## @REQUEST_MAX_COORDINATES
L_.str.2:                               ## @.str.2
	.asciz	"coordinates string"

	.no_dead_strip	_wacom_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_setup
_wacom_setup:                           ; @wacom_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _REQUEST_MODEL_AND_ROM_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQUEST_MODEL_AND_ROM_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	bl	_wacom_send_and_wait
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _REQUEST_CONFIGURATION_STRING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REQUEST_CONFIGURATION_STRING@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_wacom_send_and_wait
	cbnz	w0, LBB0_1
LBB0_5:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x20]
	cbnz	x8, LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _REQUEST_MAX_COORDINATES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REQUEST_MAX_COORDINATES@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x3, l_.str.2@PAGE
Lloh14:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_wacom_send_and_wait
	cbnz	w0, LBB0_1
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wacom_send_setup_string
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_REQUEST_MODEL_AND_ROM_VERSION,4,2 ; @REQUEST_MODEL_AND_ROM_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"model and version"

	.comm	_REQUEST_CONFIGURATION_STRING,4,2 ; @REQUEST_CONFIGURATION_STRING
l_.str.1:                               ; @.str.1
	.asciz	"configuration string"

	.comm	_REQUEST_MAX_COORDINATES,4,2    ; @REQUEST_MAX_COORDINATES
l_.str.2:                               ; @.str.2
	.asciz	"coordinates string"

	.no_dead_strip	_wacom_setup
.subsections_via_symbols
