	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wdt87xx_send_command
_wdt87xx_send_command:                  ## @wdt87xx_send_command
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CMD_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_VND_REQ_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CMD_REPORT_ID_OFFSET@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, (%rbx,%rcx,4)
	movq	_VND_SET_COMMAND_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CMD_TYPE_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rbx,%rcx,4)
	movq	_CMD_INDEX_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rsi
	movl	%r13d, %edi
	callq	_put_unaligned_le16
	leal	-128(%r13), %eax
	cmpl	$7, %eax
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_CMD_KEY_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rsi
	movl	%r12d, %edi
	callq	_put_unaligned_le32
	jmp	LBB0_6
LBB0_2:
	movzbl	%r12b, %edi
	movq	_CMD_LENGTH_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rsi
	callq	_put_unaligned_le32
	jmp	LBB0_6
LBB0_9:
	movq	(%r14), %rax
	movl	$0, (%rbx,%rax,4)
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_7:
	movq	_CMD_SFUNL_KEY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_CMD_SFLCK_KEY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	movq	_CMD_KEY_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rsi
	callq	_put_unaligned_le16
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	shll	$2, %r15d
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_wdt87xx_set_feature
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_CMD_BUF_SIZE,4,2               ## @CMD_BUF_SIZE
	.comm	_VND_REQ_WRITE,4,2              ## @VND_REQ_WRITE
	.comm	_CMD_REPORT_ID_OFFSET,8,3       ## @CMD_REPORT_ID_OFFSET
	.comm	_VND_SET_COMMAND_DATA,4,2       ## @VND_SET_COMMAND_DATA
	.comm	_CMD_TYPE_OFFSET,8,3            ## @CMD_TYPE_OFFSET
	.comm	_CMD_INDEX_OFFSET,8,3           ## @CMD_INDEX_OFFSET
	.comm	_CMD_LENGTH_OFFSET,8,3          ## @CMD_LENGTH_OFFSET
	.comm	_CMD_SFLCK_KEY,4,2              ## @CMD_SFLCK_KEY
	.comm	_CMD_KEY_OFFSET,8,3             ## @CMD_KEY_OFFSET
	.comm	_CMD_SFUNL_KEY,4,2              ## @CMD_SFUNL_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid command: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wdt87xx_send_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wdt87xx_send_command
_wdt87xx_send_command:                  ; @wdt87xx_send_command
	.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
	sub	sp, sp, #16
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _CMD_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	lsl	x8, x23, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _VND_REQ_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VND_REQ_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x24, _CMD_REPORT_ID_OFFSET@GOTPAGE
Lloh12:
	ldr	x24, [x24, _CMD_REPORT_ID_OFFSET@GOTPAGEOFF]
	ldr	x9, [x24]
	str	w8, [x20, x9, lsl #2]
Lloh13:
	adrp	x8, _VND_SET_COMMAND_DATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VND_SET_COMMAND_DATA@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _CMD_TYPE_OFFSET@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CMD_TYPE_OFFSET@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	str	w8, [x20, x9, lsl #2]
Lloh19:
	adrp	x8, _CMD_INDEX_OFFSET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CMD_INDEX_OFFSET@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x1, x20, x8, lsl #2
	mov	x0, x22
	bl	_put_unaligned_le16
	sub	w8, w22, #128
	cmp	w8, #7
	b.hi	LBB0_5
; %bb.1:
Lloh22:
	adrp	x9, lJTI0_0@PAGE
Lloh23:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh24:
	adrp	x8, _CMD_KEY_OFFSET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CMD_KEY_OFFSET@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	add	x1, x20, x8, lsl #2
	mov	x0, x21
	b	LBB0_4
LBB0_3:
	and	w0, w21, #0xff
Lloh27:
	adrp	x8, _CMD_LENGTH_OFFSET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CMD_LENGTH_OFFSET@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	add	x1, x20, x8, lsl #2
LBB0_4:
	bl	_put_unaligned_le32
	b	LBB0_9
LBB0_5:
	ldr	x8, [x24]
	str	wzr, [x20, x8, lsl #2]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_6:
Lloh35:
	adrp	x8, _CMD_SFUNL_KEY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CMD_SFUNL_KEY@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh37:
	adrp	x8, _CMD_SFLCK_KEY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CMD_SFLCK_KEY@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _CMD_KEY_OFFSET@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CMD_KEY_OFFSET@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	add	x1, x20, x8, lsl #2
	bl	_put_unaligned_le16
LBB0_9:
	lsl	w2, w23, #2
	mov	x0, x19
	mov	x1, x20
	bl	_wdt87xx_set_feature
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #48
	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
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_CMD_BUF_SIZE,4,2               ; @CMD_BUF_SIZE
	.comm	_VND_REQ_WRITE,4,2              ; @VND_REQ_WRITE
	.comm	_CMD_REPORT_ID_OFFSET,8,3       ; @CMD_REPORT_ID_OFFSET
	.comm	_VND_SET_COMMAND_DATA,4,2       ; @VND_SET_COMMAND_DATA
	.comm	_CMD_TYPE_OFFSET,8,3            ; @CMD_TYPE_OFFSET
	.comm	_CMD_INDEX_OFFSET,8,3           ; @CMD_INDEX_OFFSET
	.comm	_CMD_LENGTH_OFFSET,8,3          ; @CMD_LENGTH_OFFSET
	.comm	_CMD_SFLCK_KEY,4,2              ; @CMD_SFLCK_KEY
	.comm	_CMD_KEY_OFFSET,8,3             ; @CMD_KEY_OFFSET
	.comm	_CMD_SFUNL_KEY,4,2              ; @CMD_SFUNL_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid command: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wdt87xx_send_command
.subsections_via_symbols
