	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doc_set_device_id
_doc_set_device_id:                     ## @doc_set_device_id
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_doc_dbg
	movq	_DOC_DEVICESELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_doc_writeb
	movq	_DOC_FLASHCONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_doc_register_readb
	movq	_DOC_CTRL_VIOLATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_DOC_CTRL_CE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_doc_writeb                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"doc_set_device_id(%d)\n"

	.comm	_DOC_DEVICESELECT,4,2           ## @DOC_DEVICESELECT
	.comm	_DOC_FLASHCONTROL,4,2           ## @DOC_FLASHCONTROL
	.comm	_DOC_CTRL_VIOLATION,4,2         ## @DOC_CTRL_VIOLATION
	.comm	_DOC_CTRL_CE,4,2                ## @DOC_CTRL_CE
	.no_dead_strip	_doc_set_device_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doc_set_device_id
_doc_set_device_id:                     ; @doc_set_device_id
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_doc_dbg
Lloh2:
	adrp	x8, _DOC_DEVICESELECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DOC_DEVICESELECT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_doc_writeb
Lloh5:
	adrp	x19, _DOC_FLASHCONTROL@GOTPAGE
Lloh6:
	ldr	x19, [x19, _DOC_FLASHCONTROL@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_doc_register_readb
Lloh7:
	adrp	x8, _DOC_CTRL_VIOLATION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DOC_CTRL_VIOLATION@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh10:
	adrp	x9, _DOC_CTRL_CE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DOC_CTRL_CE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w2, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_doc_writeb
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"doc_set_device_id(%d)\n"

	.comm	_DOC_DEVICESELECT,4,2           ; @DOC_DEVICESELECT
	.comm	_DOC_FLASHCONTROL,4,2           ; @DOC_FLASHCONTROL
	.comm	_DOC_CTRL_VIOLATION,4,2         ; @DOC_CTRL_VIOLATION
	.comm	_DOC_CTRL_CE,4,2                ; @DOC_CTRL_CE
	.no_dead_strip	_doc_set_device_id
.subsections_via_symbols
